Class: ConvenientService::Support::Cache::Entities::Caches::Base Private
- Inherits:
-
Object
- Object
- ConvenientService::Support::Cache::Entities::Caches::Base
- Includes:
- AbstractMethod
- Defined in:
- lib/convenient_service/support/cache/entities/caches/base.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.
Instance Attribute Summary collapse
- #default ⇒ Object readonly private
- #key ⇒ Object readonly private
- #parent ⇒ Object readonly private
- #store ⇒ Object readonly private
Class Method Summary collapse
Instance Method Summary collapse
- #==(other) ⇒ Boolean? private
-
#[] ⇒ Object
private
Can be any type.
-
#[]= ⇒ Object
private
Can be any type.
- #clear ⇒ ConvenientService::Support::Cache::Enitities::Caches::Base private
-
#default ⇒ Object
readonly
private
Can be any type.
-
#delete ⇒ Object?
private
Can be any type.
- #empty? ⇒ Boolean private
- #exist? ⇒ Boolean private
-
#fetch ⇒ Object
private
Can be any type.
-
#get ⇒ Object
private
Can be any type.
- #initialize(store: nil, default: nil, parent: nil, key: nil) ⇒ void constructor private
- #keygen ⇒ ConvenientService::Support::Cache::Entities::Key private
-
#read ⇒ Object
private
Can be any type.
- #scope ⇒ ConvenientService::Support::Cache::Enitities::Caches::Base private
- #scope! ⇒ ConvenientService::Support::Cache::Enitities::Caches::Base private
-
#set ⇒ Object
private
Can be any type.
-
#write ⇒ Object
private
Can be any type.
Methods included from ConvenientService::Support::Concern
Constructor Details
#initialize(store: nil, default: nil, parent: nil, key: nil) ⇒ 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.
110 111 112 113 114 115 |
# File 'lib/convenient_service/support/cache/entities/caches/base.rb', line 110 def initialize(store: nil, default: nil, parent: nil, key: nil) @store = store @default = default @parent = parent @key = key end |
Instance Attribute Details
#default ⇒ 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.
35 36 37 |
# File 'lib/convenient_service/support/cache/entities/caches/base.rb', line 35 def default @default end |
#key ⇒ 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.
‘key` is only present when cache is scoped.
51 52 53 |
# File 'lib/convenient_service/support/cache/entities/caches/base.rb', line 51 def key @key end |
#parent ⇒ 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.
‘parent` is only present when cache is scoped.
43 44 45 |
# File 'lib/convenient_service/support/cache/entities/caches/base.rb', line 43 def parent @parent end |
#store ⇒ 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.
29 30 31 |
# File 'lib/convenient_service/support/cache/entities/caches/base.rb', line 29 def store @store end |
Class Method Details
.keygen ⇒ ConvenientService::Support::Cache::Entities::Key
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.
20 21 22 |
# File 'lib/convenient_service/support/cache/entities/caches/base.rb', line 20 def keygen(...) Entities::Key.new(...) end |
Instance Method Details
#==(other) ⇒ 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.
168 169 170 171 172 173 174 |
# File 'lib/convenient_service/support/cache/entities/caches/base.rb', line 168 def ==(other) return unless other.instance_of?(self.class) return false if store != other.store true end |
#[] ⇒ 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.
Returns Can be any type.
130 131 132 |
# File 'lib/convenient_service/support/cache/entities/caches/base.rb', line 130 def [](...) read(...) end |
#[]= ⇒ 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.
Returns Can be any type.
150 151 152 |
# File 'lib/convenient_service/support/cache/entities/caches/base.rb', line 150 def []=(...) write(...) end |
#clear ⇒ ConvenientService::Support::Cache::Enitities::Caches::Base
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 |
# File 'lib/convenient_service/support/cache/entities/caches/base.rb', line 86 abstract_method :clear |
#default= ⇒ 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.
Returns Can be any type.
101 |
# File 'lib/convenient_service/support/cache/entities/caches/base.rb', line 101 abstract_method :default= |
#delete ⇒ 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.
Returns Can be any type.
81 |
# File 'lib/convenient_service/support/cache/entities/caches/base.rb', line 81 abstract_method :delete |
#empty? ⇒ 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.
56 |
# File 'lib/convenient_service/support/cache/entities/caches/base.rb', line 56 abstract_method :empty? |
#exist? ⇒ 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.
61 |
# File 'lib/convenient_service/support/cache/entities/caches/base.rb', line 61 abstract_method :exist? |
#fetch ⇒ 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.
Returns Can be any type.
76 |
# File 'lib/convenient_service/support/cache/entities/caches/base.rb', line 76 abstract_method :fetch |
#get ⇒ 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.
Returns Can be any type.
140 141 142 |
# File 'lib/convenient_service/support/cache/entities/caches/base.rb', line 140 def get(...) read(...) end |
#keygen ⇒ ConvenientService::Support::Cache::Entities::Key
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.
120 121 122 |
# File 'lib/convenient_service/support/cache/entities/caches/base.rb', line 120 def keygen(...) self.class.keygen(...) end |
#read ⇒ 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.
Returns Can be any type.
66 |
# File 'lib/convenient_service/support/cache/entities/caches/base.rb', line 66 abstract_method :read |
#scope ⇒ ConvenientService::Support::Cache::Enitities::Caches::Base
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.
91 |
# File 'lib/convenient_service/support/cache/entities/caches/base.rb', line 91 abstract_method :scope |
#scope! ⇒ ConvenientService::Support::Cache::Enitities::Caches::Base
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.
96 |
# File 'lib/convenient_service/support/cache/entities/caches/base.rb', line 96 abstract_method :scope! |
#set ⇒ 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.
Returns Can be any type.
160 161 162 |
# File 'lib/convenient_service/support/cache/entities/caches/base.rb', line 160 def set(...) write(...) end |
#write ⇒ 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.
Returns Can be any type.
71 |
# File 'lib/convenient_service/support/cache/entities/caches/base.rb', line 71 abstract_method :write |