module GraphQL::DataLoader::Cache(K, V)
Direct including types
Defined in:
graphql-dataloader/cache.crInstance Method Summary
- #[](key : K) : V
- #[]=(key : K, value : V) : Nil
- #[]?(key : K) : V | Nil
- #clear : Nil
- #delete(key : K) : Nil
-
#get(key : K, &block : -> V)
Try to get a value from the cache and call the block if it's not there
- #has_key?(key : K) : Bool
Instance Method Detail
def get(key : K, &block : -> V)
#
Try to get a value from the cache and call the block if it's not there