chanzuckerberg / redis-memo

A Redis-based version addressable caching system. Memoize pure functions, aggregated database queries, and 3rd party API calls.
https://rubygems.org/gems/redis-memo
MIT License
33 stars 3 forks source link

[refactor] Add RedisMemo::Util #71

Closed donaldong closed 3 years ago

donaldong commented 3 years ago

This moves code around. No functionality changes.

donaldong commented 3 years ago

remove an extra include

:mag_right: Click to see changes since last update.

codecov[bot] commented 3 years ago

Codecov Report

Merging #71 (9075fb2) into main (34d64fd) will decrease coverage by 0.03%. The diff coverage is 98.23%.

:exclamation: Current head 9075fb2 differs from pull request most recent head 880b5b4. Consider uploading reports for the commit 880b5b4 to get more accurate results Impacted file tree graph

@@            Coverage Diff             @@
##             main      #71      +/-   ##
==========================================
- Coverage   97.43%   97.40%   -0.04%     
==========================================
  Files          36       38       +2     
  Lines        2264     2232      -32     
==========================================
- Hits         2206     2174      -32     
  Misses         58       58              
Impacted Files Coverage Δ
lib/redis_memo/memoizable/invalidation.rb 100.00% <ø> (ø)
lib/redis_memo/railtie.rb 80.00% <80.00%> (ø)
lib/redis_memo/memoize_query.rb 97.05% <97.01%> (ø)
lib/redis_memo/memoize_method.rb 98.03% <98.55%> (+0.03%) :arrow_up:
lib/redis_memo.rb 97.67% <100.00%> (-0.41%) :arrow_down:
lib/redis_memo/batch.rb 100.00% <100.00%> (ø)
lib/redis_memo/cache.rb 98.38% <100.00%> (ø)
lib/redis_memo/memoizable.rb 94.54% <100.00%> (+0.10%) :arrow_up:
lib/redis_memo/memoize_query/cached_select.rb 93.33% <100.00%> (+0.04%) :arrow_up:
lib/redis_memo/thread_local_var.rb 100.00% <100.00%> (ø)
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 8f64f46...880b5b4. Read the comment docs.