class Azu::Cache::NullStore

Overview

Null store for disabled caching

Defined in:

azu/cache.cr

Instance Method Summary

Instance methods inherited from class Azu::Cache::Store

clear : Bool clear, decrement(key : String, amount : Int32 = 1, ttl : Time::Span | Nil = nil) : Int32 | Nil decrement, delete(key : String) : Bool delete, exists?(key : String) : Bool exists?, fetch(key : String, ttl : Time::Span | Nil = nil, & : -> String) : String fetch, get(key : String) : String | Nil
get(key : String, ttl : Time::Span | Nil = nil, & : -> String) : String
get
, get_multi(keys : Array(String)) : Hash(String, String | Nil) get_multi, increment(key : String, amount : Int32 = 1, ttl : Time::Span | Nil = nil) : Int32 | Nil increment, set(key : String, value : String, ttl : Time::Span | Nil = nil) : Bool set, set_multi(values : Hash(String, String), ttl : Time::Span | Nil = nil) : Bool set_multi, size : Int32 size

Instance Method Detail

def clear : Bool #

[View source]
def delete(key : String) : Bool #

[View source]
def exists?(key : String) : Bool #

[View source]
def get(key : String) : String | Nil #

[View source]
def set(key : String, value : String, ttl : Time::Span | Nil = nil) : Bool #

[View source]
def size : Int32 #

[View source]