Perscache

Latest version: v0.7.0

Safety actively analyzes 701735 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

0.7.0

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**: https://github.com/leshchenko1979/perscache/compare/0.6.2...0.7.0

0.6.2

What's Changed
* Fixed - NoCache class requires parentheses for decorator, unlike Cache by leshchenko1979 in https://github.com/leshchenko1979/perscache/pull/20


**Full Changelog**: https://github.com/leshchenko1979/perscache/compare/0.6.1...0.6.2

0.6.1

What's Changed
* Improve `FileStorage()` protocol by leshchenko1979 in https://github.com/leshchenko1979/perscache/pull/17
* Fix GoogleCloudStorage errors


**Full Changelog**: https://github.com/leshchenko1979/perscache/compare/0.6.0...0.6.1

0.6.0

What's Changed
* Add logging and some fixes by leshchenko1979 in https://github.com/leshchenko1979/perscache/pull/16


**Full Changelog**: https://github.com/leshchenko1979/perscache/compare/0.5.1...0.6.0

0.5.1

Fix hashing errors

**Full Changelog**: https://github.com/leshchenko1979/perscache/compare/0.5.0...0.5.1

0.5.0

What's Changed
* `ignore` understands both positional and keyword arguments by leshchenko1979 in https://github.com/leshchenko1979/perscache/pull/12
* Implement Google Cloud Storage by leshchenko1979 in https://github.com/leshchenko1979/perscache/pull/15


**Full Changelog**: https://github.com/leshchenko1979/perscache/compare/0.4.1...0.5.0

Page 1 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.