Skip to content

Instantly share code, notes, and snippets.

@ritikesh
Last active May 24, 2020 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ritikesh/345de93c9d633e2f04b280190a095d4f to your computer and use it in GitHub Desktop.
Save ritikesh/345de93c9d633e2f04b280190a095d4f to your computer and use it in GitHub Desktop.
blog gists
irb(main):024:0> MemoizeUntil.const_get(:TYPE_FACTORY)[:day]
=> #<MemoizeUntil::Store:0x00007f8a61415be8 @_store={:flags_from_redis=>{18=>1}, :default=>{}}, @_kind=:day>
irb(main):025:0> MemoizeUntil.day(:default) { nil }
=> nil
irb(main):026:0> MemoizeUntil.const_get(:TYPE_FACTORY)[:day]
=> #<MemoizeUntil::Store:0x00007f8a61415be8 @_store={:flags_from_redis=>{18=>1}, :default=>{18=>#<MemoizeUntil::NullObject:0x00007f8a640226c8>}}, @_kind=:day>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment