Sha256: 6f61fc20a819fa238af2b157cbeae3bc96c36c1d2da2c9eb7ebe94d673d0d406
Contents?: true
Size: 620 Bytes
Versions: 3
Compression:
Stored size: 620 Bytes
Contents
class APICache::AbstractStore def initialize raise "Method not implemented. Called abstract class." end # Set value. Returns true if success. def set(key, value) raise "Method not implemented. Called abstract class." end # Get value. def get(key) raise "Method not implemented. Called abstract class." end # Does a given key exist in the cache? def exists?(key) raise "Method not implemented. Called abstract class." end # Has a given time passed since the key was set? def expired?(key, timeout) raise "Method not implemented. Called abstract class." end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
mloughran-api_cache-0.1.1 | lib/api_cache/abstract_store.rb |
mloughran-api_cache-0.1.2 | lib/api_cache/abstract_store.rb |
api_cache-0.1.2 | lib/api_cache/abstract_store.rb |