module GraphQL::DataLoader::Cache(K, V)

Direct including types

Defined in:

graphql-dataloader/cache.cr

Instance Method Summary

Instance Method Detail

abstract def [](key : K) : V #

[View source]
abstract def []=(key : K, value : V) : Nil #

[View source]
abstract def []?(key : K) : V | Nil #

[View source]
abstract def clear : Nil #

[View source]
abstract def delete(key : K) : Nil #

[View source]
def get(key : K, &block : -> V) #

Try to get a value from the cache and call the block if it's not there


[View source]
abstract def has_key?(key : K) : Bool #

[View source]