class Orion::Cache

Defined in:

Constructors

Instance Method Summary

Constructor Detail

def self.new(store = ::Cache::NullStore(String, String).new(expires_in: 0.seconds)) #

Instance Method Detail

def clear(*args, **options) #

def clear(*args, **options, &) #

def delete(keyable : Keyable, value) #

Delete the item from cache


def delete(*args, **options) #

def delete(*args, **options, &) #

def fetch(*args, **options) #

def fetch(key : Keyable, &block) #

Read the item from cache, if it doesn't exist, invoke the block


def fetch(*args, **options, &) #

def fetch_if(condition, key, &block) #

If the conition is true invoke #fetch


def read(keyable : Keyable) #

Read an item from cache


def read(*args, **options) #

def read(*args, **options, &) #

def write(keyable : Keyable, value) #

Write an item to cache


def write(*args, **options) #

def write(*args, **options, &) #