abstract class Zap::Utils::Fetch::Cache(T)

Direct Known Subclasses

Defined in:

utils/fetch/cache.cr

Class Method Summary

Instance Method Summary

Instance methods inherited from class Object

or(other : T) : T | self forall T or, pipe(&) pipe

Class Method Detail

def self.hash(str) #
Description copied from class Reference

See Object#hash(hasher)


[View source]

Instance Method Detail

abstract def get(key_str : String, etag : String | Nil) : T | Nil #

[View source]
abstract def get(key_str : String, &etag : -> String | Nil) : T | Nil #

[View source]
abstract def set(key_str : String, value : T, expiry : Time::Span | Nil, etag : String | Nil) : Nil #

[View source]