Fastapi Redis Cache Versions Save

A simple and robust caching solution for FastAPI that interprets request header values and creates proper response header values (powered by Redis)

v0.2.5

2 years ago

This is a small release containing fixes for two minor bugs. Also, 100% test coverage has again been achieved. Comments documenting the intended usage and design have been added to all test functions.

Bug Fixes

  • bug: serialize_json should not be called on data if attempt to add data to cache fails @a-luna (#47)
  • bug: 304 response to request with if-none-metch header field must contain cache-control, expires, etag header fields @a-luna (#44)

Maintenance

  • add comments to test functions in order to better document the intended design @a-luna (#48)
  • missing test coverage: response data is not json-serializable @a-luna (#45)
  • add toc to readme @a-luna (#49)

v0.2.4

2 years ago

The fix applied in v0.2.3 inadvertently prevented all list objects from being added to the cache, which has been fixed in this release.

Bug Fixes

  • fix: list objects are now uncachable @a-luna (#36)

Maintenance

  • update README @a-luna (#37)

v0.2.3

2 years ago
  • fix: attemt to call dict() on non-dict objects (@a-luna, e1fd364)
  • fixed minor typos in README (@a-luna, b59837d)
  • update version number and bump requirements (@a-luna dc12793)

v0.2.2

3 years ago

Bug Fixes

  • redis.ConnectionError should be caught @a-luna (#30)

v0.2.1

3 years ago

Bug Fixes

  • fix redis error @a-luna (#28)

v0.2.0

3 years ago

Maintenance

  • update README @a-luna (#26)
  • add test cases for partial functions @a-luna (#25)
  • refactor cache module @a-luna (#24)
  • refactor client module @a-luna (#23)
  • refactor key_gen module @a-luna (#22)

v0.1.4

3 years ago

Bug Fixes

  • HTTP status code should be int @a-luna (#19)

Maintenance

  • update README @a-luna (#20)

v0.1.3

3 years ago

Bug Fixes

  • fix: get_etag should handle list objects @a-luna (#15)

Maintenance

  • update README @a-luna (#16)

v0.1.2

3 years ago

Bug Fixes

  • fix: duplicate types can be added to ignore_arg_types @a-luna (#12)
  • cache key does not include prefix @a-luna (#5)

Maintenance

  • minor housekeeping @a-luna (#14)
  • add more usage examples and explanations to README @a-luna (#13)
  • increase test coverage to 100% @a-luna (#11)
  • further refactorings for client module @a-luna (#10)
  • move ttl calculation to client module @a-luna (#9)
  • increase test coverage to 94% @a-luna (#7)
  • change redis module to use str for host_url @a-luna (#6)
  • refactor cache and client modules @a-luna (#4)

v0.1.1

3 years ago

Bug Fixes

  • Fixed an import error in redis.py @a-luna