Class: AnyCache::Adapters::Basic Private
- Inherits:
-
Object
- Object
- AnyCache::Adapters::Basic
- Extended by:
- Forwardable
- Includes:
- Dumper::InterfaceAccessMixin
- Defined in:
- lib/any_cache/adapters/basic.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Direct Known Subclasses
ActiveSupportDalliStore, ActiveSupportMemCacheStore, ActiveSupportRedisCacheStore, Dalli, Delegator, Redis
Instance Attribute Summary collapse
- #driver ⇒ Object readonly private
Class Method Summary collapse
Instance Method Summary collapse
- #cleanup(**options) ⇒ void private
- #clear(**options) ⇒ void private
- #decrement(key, value, **options) ⇒ Integer, Float private
- #delete(key, **options) ⇒ void private
- #delete_matched(pattern, **options) ⇒ void private
- #exist?(key, **options) ⇒ Boolean private
- #expire(key, expires_in:) ⇒ void private
- #fetch(key, **options, &fallback) ⇒ Object private
- #fetch_multi(*keys, **options, &fallback) ⇒ Hash private
- #increment(key, value, **options) ⇒ Integer, Float private
- #initialize(driver) ⇒ void constructor private
- #persist(key, **options) ⇒ void private
- #read(key, **options) ⇒ Object private
- #read_multi(*keys, **options) ⇒ Hash private
- #write(key, value, **options) ⇒ void private
- #write_multi(entries, **options) ⇒ void private
Methods included from Dumper::InterfaceAccessMixin
#detransform_pairset, #detransform_value, #transform_pairset, #transform_value
Constructor Details
#initialize(driver) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
34 35 36 |
# File 'lib/any_cache/adapters/basic.rb', line 34 def initialize(driver) @driver = driver end |
Instance Attribute Details
#driver ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
27 28 29 |
# File 'lib/any_cache/adapters/basic.rb', line 27 def driver @driver end |
Class Method Details
.supported_driver?(driver) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
18 19 20 |
# File 'lib/any_cache/adapters/basic.rb', line 18 def supported_driver?(driver) false end |
Instance Method Details
#cleanup(**options) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
177 178 179 |
# File 'lib/any_cache/adapters/basic.rb', line 177 def cleanup(**) raise NotImplementedError end |
#clear(**options) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
168 169 170 |
# File 'lib/any_cache/adapters/basic.rb', line 168 def clear(**) raise NotImplementedError end |
#decrement(key, value, **options) ⇒ Integer, Float
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
139 140 141 |
# File 'lib/any_cache/adapters/basic.rb', line 139 def decrement(key, value, **) raise NotImplementedError end |
#delete(key, **options) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
107 108 109 |
# File 'lib/any_cache/adapters/basic.rb', line 107 def delete(key, **) raise NotImplementedError end |
#delete_matched(pattern, **options) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
117 118 119 |
# File 'lib/any_cache/adapters/basic.rb', line 117 def delete_matched(pattern, **) raise NotImplementedError end |
#exist?(key, **options) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
187 188 189 |
# File 'lib/any_cache/adapters/basic.rb', line 187 def exist?(key, **) raise NotImplementedError end |
#expire(key, expires_in:) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
149 150 151 |
# File 'lib/any_cache/adapters/basic.rb', line 149 def expire(key, expires_in:) raise NotImplementedError end |
#fetch(key, **options, &fallback) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
86 87 88 |
# File 'lib/any_cache/adapters/basic.rb', line 86 def fetch(key, **, &fallback) raise NotImplementedError end |
#fetch_multi(*keys, **options, &fallback) ⇒ Hash
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
97 98 99 |
# File 'lib/any_cache/adapters/basic.rb', line 97 def fetch_multi(*keys, **, &fallback) raise NotImplementedError end |
#increment(key, value, **options) ⇒ Integer, Float
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
128 129 130 |
# File 'lib/any_cache/adapters/basic.rb', line 128 def increment(key, value, **) raise NotImplementedError end |
#persist(key, **options) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
159 160 161 |
# File 'lib/any_cache/adapters/basic.rb', line 159 def persist(key, **) raise NotImplementedError end |
#read(key, **options) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
44 45 46 |
# File 'lib/any_cache/adapters/basic.rb', line 44 def read(key, **) raise NotImplementedError end |
#read_multi(*keys, **options) ⇒ Hash
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
54 55 56 |
# File 'lib/any_cache/adapters/basic.rb', line 54 def read_multi(*keys, **) raise NotImplementedError end |
#write(key, value, **options) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
65 66 67 |
# File 'lib/any_cache/adapters/basic.rb', line 65 def write(key, value, **) raise NotImplementedError end |
#write_multi(entries, **options) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
75 76 77 |
# File 'lib/any_cache/adapters/basic.rb', line 75 def write_multi(entries, **) raise NotImplementedError end |