Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A awesome-python
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 13
    • Issues 13
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 317
    • Merge requests 317
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Vinta Chen
  • awesome-python
  • Merge requests
  • !1814

docs: add `power-cache` to caching section

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Administrator requested to merge github/fork/castarco/patch-1 into master Oct 06, 2021
  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 1

Created by: castarco

What is this Python project?

A caching library that provides LRU & TTL caching, plus memoization decorators.

Describe features.

What's the difference between this Python project and similar ones?

Compared to functools

  • it provides async support out of the box
  • it provides ttl caching out of the box

Compared to many other caching libraries in the same niche

  • simpler approach (it does not consider object sizes, only its count)
  • simpler & more performant approach for ttl caching (using monotonic instead of datetime)
  • more correct approach (when it comes to __hash__ and __eq__ functions)
  • ability to discard emptyish/nullish values from being cached at the decorator level
  • proper type hints

--

Anyone who agrees with this pull request could submit an Approve review to it.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/castarco/patch-1