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
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
- #exist?(key, **options) ⇒ Boolean private
- #expire(key, expires_in:) ⇒ void private
- #fetch(key, **options, &block) ⇒ Object private
- #increment(key, value, **options) ⇒ Integer, Float private
- #initialize(driver) ⇒ void constructor private
- #persist(key, **options) ⇒ void private
- #read(key, **options) ⇒ Object private
- #write(key, value, **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.
114 115 116 |
# File 'lib/any_cache/adapters/basic.rb', line 114 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.
85 86 87 |
# File 'lib/any_cache/adapters/basic.rb', line 85 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.
63 64 65 |
# File 'lib/any_cache/adapters/basic.rb', line 63 def delete(key, **) 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.
124 125 126 |
# File 'lib/any_cache/adapters/basic.rb', line 124 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.
95 96 97 |
# File 'lib/any_cache/adapters/basic.rb', line 95 def expire(key, expires_in:) raise NotImplementedError end |
#fetch(key, **options, &block) ⇒ 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.
134 135 136 |
# File 'lib/any_cache/adapters/basic.rb', line 134 def fetch(key, **, &block) 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.
74 75 76 |
# File 'lib/any_cache/adapters/basic.rb', line 74 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.
105 106 107 |
# File 'lib/any_cache/adapters/basic.rb', line 105 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 |
#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.
53 54 55 |
# File 'lib/any_cache/adapters/basic.rb', line 53 def write(key, value, **) raise NotImplementedError end |