Skip to content

Releases: leshchenko1979/perscache

0.7.1

14 Mar 05:58

Choose a tag to compare

Enhance caching functionality and update documentation

  • Introduced per_instance parameter to the cache decorator, allowing shared caching between instances when set to False.
  • Updated README to reflect the new caching behavior and added examples for clarity.
  • Incremented version number to 0.7.1 in setup.cfg to signify the new feature addition.
  • Expanded API reference documentation to include details about the per_instance parameter.

These changes improve the flexibility of the caching mechanism and enhance user understanding of its capabilities.

Full Changelog: 0.7.0...0.7.1

0.7.0

18 Dec 23:17

Choose a tag to compare

Added

  • Instance-specific caching for both sync and async class methods
  • Smart detection of instance methods vs standalone functions
  • Improved logging for cache operations and method detection
  • Better handling of ignored parameters in instance methods

Fixed

  • Fixed cache key generation for instance methods to ensure proper instance separation
  • Fixed infinite recursion issues in instance method detection
  • Fixed handling of ignored parameters in instance methods
  • Fixed cache invalidation for instance methods when code changes

Changed

  • Improved instance method detection to exclude built-in types
  • Updated documentation with instance method caching examples
  • Simplified cache key generation logic
  • Enhanced debug logging for better troubleshooting

Developer Notes

  • Added comprehensive test coverage for instance method caching
  • Added test cases for both sync and async instance methods
  • Added tests for multiple instances of the same class
  • Added tests for ignored parameters in instance methods

Full Changelog: 0.6.2...0.7.0

0.6.2

12 Nov 12:46

Choose a tag to compare

What's Changed

  • Fixed - NoCache class requires parentheses for decorator, unlike Cache by @leshchenko1979 in #20

Full Changelog: 0.6.1...0.6.2

0.6.1

18 May 14:24

Choose a tag to compare

What's Changed

Full Changelog: 0.6.0...0.6.1

0.6.0

14 May 13:50

Choose a tag to compare

What's Changed

Full Changelog: 0.5.1...0.6.0

0.5.1

10 May 21:11

Choose a tag to compare

Fix hashing errors

Full Changelog: 0.5.0...0.5.1

0.5.0

10 May 14:42
20f6918

Choose a tag to compare

What's Changed

Full Changelog: 0.4.1...0.5.0

0.4.1

10 May 09:00

Choose a tag to compare

What's Changed

Full Changelog: 0.4.0...0.4.1

0.4.0

09 May 22:28

Choose a tag to compare

What's Changed

Full Changelog: 0.3.0...0.4.0

Add "ttl" aka "time-to-live" aka "cache expiration"

08 May 19:39

Choose a tag to compare

0.3.0

Add docstrings and mark internal methods