Closed satoruk closed 8 years ago
This difference is intentional, as noted in the README:
Like other
ActiveSupport::Cache
implementations it is possible to cachenil
as a value. However, the fetch methods treatnil
values as a cache miss and re-generate/re-cache the value. Cachingnil
isn't recommended.
Oops, Sorry ðŸ˜
This PR is to skip the provided block in
fetch
method if writenil
value. The behavior same asActiveSupport::Cache::MemoryStore
.