Cashews

Latest version: v7.1.0

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

Scan your dependencies

Page 2 of 4

6.0.0

What's Changed
* cache `StreamResponse` and any other custom types - big refactoring for value serialization
* Improve `lock` and `locked` decorator (new signature)
* protection to handle concurrent request more efficiently (protected parameter for cache decorators)

Breaking changes:
* change the way how bytes are stored. If you store raw bytes in a cache, the values will be invalid.
* drop python 3.7 support
* `safe` parameter renamed to `suppress` ( setup ).
* `hash_key` parameter renamed to `secret`. ( setup )


**Full Changelog**: https://github.com/Krukov/cashews/compare/5.3.2...6.0.0

5.3.0

What's Changed
* added decorator to cache async iterators
* tags for cache invalidation instead of by function invalidation

**Full Changelog**: https://github.com/Krukov/cashews/compare/5.2.0...5.3.0

5.2.0

What's Changed
* add transaction feature by Krukov in https://github.com/Krukov/cashews/pull/117
* fix set if exist for client side cache
* fix get_expired for client cache
* ping should return PONG if message not determined


**Full Changelog**: https://github.com/Krukov/cashews/compare/5.1.0...5.2.0

5.1.0

What's Changed
* feature: sliding window rate limit (redone circuit_breaker) by Krukov in https://github.com/Krukov/cashews/pull/110
* tech: small perf improvements by Krukov in https://github.com/Krukov/cashews/pull/109
* refactoring: wrapper before adding transaction by Krukov in https://github.com/Krukov/cashews/pull/116
* fix: remove lru cache for backend determination 119 by Krukov in https://github.com/Krukov/cashews/pull/120

**Full Changelog**: https://github.com/Krukov/cashews/compare/5.0.0...5.1.0

5.0.0

Features:

* Backend register
* Callable TTL allow to set ttl depends on *args and **kwargs
* client side cache improvements - cache missed keys
* Typing improvements
* python 3.11 support
* added delete_many

Fixes:

* client side cache invalidation on massive delete and flush
* cache closing

Breaking changes:

* `close` is async
* removed `CacheDetect`
* drop `aioredis` support
* removed `default` parameter from `get_match` method
* removed `disable_all`/`enable_all`
* removed `keys_match` method -> use `scan` method
* middleware signature

What's Changed also
* refactor!: replace `Exception` prefix with `Error` prefix by AIGeneratedUsername in https://github.com/Krukov/cashews/pull/98
* refactor: move exceptions into a single file by AIGeneratedUsername in https://github.com/Krukov/cashews/pull/99
* drop aioredis support by Krukov in https://github.com/Krukov/cashews/pull/100
* Improve typing for decorators with `TypeVar` by mnixry in https://github.com/Krukov/cashews/pull/102
* Callable ttl by Krukov in https://github.com/Krukov/cashews/pull/101
* Improve typing for decorators - fix test by Krukov in https://github.com/Krukov/cashews/pull/103


**Full Changelog**: https://github.com/Krukov/cashews/compare/4.7.1...5.0.0

4.7.1

What's Changed
* add another pickle engines 83 by Krukov in https://github.com/Krukov/cashews/pull/84
* ping for check by Krukov in https://github.com/Krukov/cashews/pull/86
* Add minimalist "pre-commit" config by AIGeneratedUsername in https://github.com/Krukov/cashews/pull/91
* refactor: auto-format files with linters by AIGeneratedUsername in https://github.com/Krukov/cashews/pull/92
* set_many implementation 87 by yashh in https://github.com/Krukov/cashews/pull/88


**Full Changelog**: https://github.com/Krukov/cashews/compare/4.6.0...4.7.1

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.