Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python.announce > #3143

ANN: DiskCache 4.0.0 Released

From Grant Jenks <grant.jenks@gmail.com>
Newsgroups comp.lang.python.announce
Subject ANN: DiskCache 4.0.0 Released
Date 2019-07-02 22:23 -0700
Message-ID <156260609281.14687.784530612439210119@mail.python.org> (permalink)

Show all headers | View raw


Announcing the release of DiskCache version 4.0.0

What is DiskCache?
----

[DiskCache][1] is an Apache2 licensed disk and file backed cache library,
written in pure-Python, and compatible with Django. By leveraging a rock-solid
database library and memory-mapped files, cache performance can match and
exceed industry standard solutions.  There’s no need for a C compiler or
running another process. [Performance is a feature][2] and testing has 100%
coverage with unit tests and hours of stress in production.

  [1]: http://www.grantjenks.com/docs/diskcache/
  [2]: http://www.grantjenks.com/docs/diskcache/cache-benchmarks.html


What's new in 4.0.0?
----

* Cache, Deque, and Index data types now support transactions for consistency
  and improved performance.

* Add memoization with cache-stampede mitigation using probabilistic early
  recomputation based on research by Vattani, et al.

* Published: "Case Study: Landing Page Caching" illustrating memoization with
  cache-stampede mitigation:
  http://www.grantjenks.com/docs/diskcache/case-study-landing-page-caching.html

* Cache methods offer `retry` parameter just like FanoutCache and DjangoCache
  methods.

* Memoization decorator added to Cache, Index, and DjangoCache data types.

* Add peek method to Cache and Deque data types.

* Add peekitem method to Cache and Index data types.

* Add touch method to Cache, FanoutCache, and DjangoCache data types.

* Add Averager data type for calculating a running average across threads and
  processes.

* Add Lock, RLock, and BoundedSemaphore data types for synchronization across
  threads and processes.

* Add throttle decorator to rate-limit calls to a function across threads and
  processes.

* Add barrier decorator to synchronize calls to a function across threads and
  processes.

* Developed, benchmarked, and tested on Python 3.7

* Numerous small documentation and performance improvements.


Links
----

- Documentation: http://www.grantjenks.com/docs/diskcache/
- Download: https://pypi.python.org/pypi/diskcache
- Source: https://github.com/grantjenks/python-diskcache
- Issues: https://github.com/grantjenks/python-diskcache/issues

Please upgrade.

Back to comp.lang.python.announce | Previous | Next | Find similar | Unroll thread


Thread

ANN: DiskCache 4.0.0 Released Grant Jenks <grant.jenks@gmail.com> - 2019-07-02 22:23 -0700

csiph-web