struct Components::Cache::MemoryCacheStore::CacheEntry

Overview

Cache entry with value and expiration time

Defined in:

components/cache/memory_cache_store.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(value : String, expires_in : Time::Span | Nil = nil) #

[View source]

Instance Method Detail

def expired? : Bool #

[View source]
def expires_at : Time | Nil #

[View source]
def expires_at=(expires_at : Time | Nil) #

[View source]
def value : String #

[View source]
def value=(value : String) #

[View source]