Module: EntityCache::Storage::Persistent
- Extended by:
- Configure::Macro
- Included in:
- Controls::Storage::Persistent::Example, None, Substitute::Persistent
- Defined in:
- lib/entity_cache/storage/persistent.rb,
lib/entity_cache/storage/persistent/none.rb,
lib/entity_cache/storage/persistent/telemetry.rb,
lib/entity_cache/storage/persistent/substitute.rb
Defined Under Namespace
Modules: Build, Get, Put, RegisterTelemetrySink, Substitute, Telemetry Classes: None
Constant Summary collapse
- Error =
Class.new(RuntimeError)
Instance Attribute Summary collapse
-
#subject ⇒ Object
readonly
Returns the value of attribute subject.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#subject ⇒ Object (readonly)
Returns the value of attribute subject.
28 29 30 |
# File 'lib/entity_cache/storage/persistent.rb', line 28 def subject @subject end |
Class Method Details
.included(cls) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/entity_cache/storage/persistent.rb', line 8 def self.included(cls) cls.class_exec do include Log::Dependency configure :persistent_store dependency :telemetry, ::Telemetry extend Build extend RegisterTelemetrySink prepend Get prepend Put virtual :configure unless instance_methods.include?(:configure) abstract :get unless instance_methods.include?(:get) abstract :put unless instance_methods.include?(:put) end end |
Instance Method Details
#initialize(subject) ⇒ Object
30 31 32 |
# File 'lib/entity_cache/storage/persistent.rb', line 30 def initialize(subject) @subject = subject end |