Class: AnyCache::Adapters::Basic Private
- Inherits:
-
Object
- Object
- AnyCache::Adapters::Basic
- Extended by:
- Forwardable
- 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
- #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
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.
32 33 34 |
# File 'lib/any_cache/adapters/basic.rb', line 32 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.
25 26 27 |
# File 'lib/any_cache/adapters/basic.rb', line 25 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.
16 17 18 |
# File 'lib/any_cache/adapters/basic.rb', line 16 def supported_driver?(driver) false end |
Instance Method Details
#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.
166 167 168 |
# File 'lib/any_cache/adapters/basic.rb', line 166 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.
137 138 139 |
# File 'lib/any_cache/adapters/basic.rb', line 137 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.
105 106 107 |
# File 'lib/any_cache/adapters/basic.rb', line 105 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.
115 116 117 |
# File 'lib/any_cache/adapters/basic.rb', line 115 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.
176 177 178 |
# File 'lib/any_cache/adapters/basic.rb', line 176 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.
147 148 149 |
# File 'lib/any_cache/adapters/basic.rb', line 147 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.
84 85 86 |
# File 'lib/any_cache/adapters/basic.rb', line 84 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.
95 96 97 |
# File 'lib/any_cache/adapters/basic.rb', line 95 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.
126 127 128 |
# File 'lib/any_cache/adapters/basic.rb', line 126 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.
157 158 159 |
# File 'lib/any_cache/adapters/basic.rb', line 157 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.
42 43 44 |
# File 'lib/any_cache/adapters/basic.rb', line 42 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.
52 53 54 |
# File 'lib/any_cache/adapters/basic.rb', line 52 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.
63 64 65 |
# File 'lib/any_cache/adapters/basic.rb', line 63 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.
73 74 75 |
# File 'lib/any_cache/adapters/basic.rb', line 73 def write_multi(entries, **) raise NotImplementedError end |