angel3_cache 9.2.0
angel3_cache: ^9.2.0 copied to clipboard
A service that provides HTTP caching to the response data for Angel3
Change Log #
9.2.0 #
- fix:
CacheService.readnow stores a cache miss withcache.update, under the requested id. - fix:
ResponseCachenow stores only responses that are safe to share: status 200, no cookies, and not markedCache-Control: no-storeorprivate. Requests with anAuthorizationheader bypass the cache. Responses that are not cached no longer getCache-Control: publicheaders - fix:
ResponseCachememory is now bounded bymaxEntries(default 1024), evicting expired then least recently used entries; previously every distinct URL (including query strings) added an entry and a lock that were never removed - fix:
CacheServicewrites now update (modify,update) or evict (remove) the entry in the sharedcacheservice, so other instances using the same cache no longer serve stale or deleted records - fix:
CacheService.updatenow callsdatabase.updateinstead ofdatabase.modify - fix:
CacheService.readno longer throws on params without aquery, uses the cache for reads without params, and falls back to the database when the cache is unavailable - fix:
ResponseCachenow caches normal responses:handleRequestbuffers the response on a cache miss, so handlers no longer needres.useBuffer()(previously only buffered responses were cached, so most never were) - fix:
ResponseCachenow answers304 Not Modified(no body) when the client's copy is current, instead of resending the full body with 200. A client sending back the exactLast-Modifiedvalue is recognized (dates are compared in whole seconds), and one with an older copy gets the cached response instead of bypassing the cache - fix:
cacheSerializationResultsnow works: results are cached per object instance across requests,shouldCacheis consulted,timeoutis honoured, a result is reused only for the same serializer, and async serializers are supported - test: Made
cache_test.dartdeterministic and corrected two assertions that expected the old behaviour - feat: Added
ResponseCache(maxEntries: ...) - chore: Removed the unused
poolandmetadependencies, and the unusedglobdev dependency - docs: Updated the README
9.1.0 #
- Require Dart >= 3.13
9.0.0 #
- Require Dart >= 3.12
8.4.0 #
- Require Dart >= 3.8
- Updated
lintsto 6.0.0 - Updated dependencies to the latest release
8.3.0 #
- Require Dart >= 3.6
- Updated
lintsto 5.0.0 - Updated dependencies to the latest release
8.2.0 #
- Require Dart >= 3.3
- Updated
lintsto 4.0.0
8.1.1 #
- Updated repository link
8.1.0 #
- Updated
lintsto 3.0.0 - Fixed linter warnings
8.0.0 #
- Require Dart >= 3.0
7.0.0 #
- Require Dart >= 2.17
6.0.0 #
- Require Dart >= 2.16
5.0.0 #
- Skipped release
4.0.3 #
- Updated linter to
package:lints
4.0.2 #
- Updated README
- Added home page link
- All 7 unit tests passed
4.0.1 #
- Updated pubspec description
- Fixed: Return
200with cached data instead of403 - Updated broken unit tests
4.0.0 #
- Migrated to support Dart >= 2.12 NNBD
3.0.0 #
- Migrated to work with Dart >= 2.12 Non NNBD
2.0.1 #
- Add
ignoreQueryAndFragmenttoResponseCache. - Rename
CacheService.ignoreQuerytoignoreParams.
1.0.0 #
- First version