Module: EntityCache::Store::Persistent

Included in:
Controls::Storage::Persistent::Example, Controls::Storage::Persistent::NotImplemented::Example, Null, Substitute::Persistent
Defined in:
lib/entity_cache/store/persistent.rb,
lib/entity_cache/store/persistent/null.rb,
lib/entity_cache/store/persistent/telemetry.rb,
lib/entity_cache/store/persistent/substitute.rb

Defined Under Namespace

Modules: Build, Configure, Get, Put, RegisterTelemetrySink, Substitute, Telemetry Classes: Null

Class Method Summary collapse

Class Method Details

.included(cls) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/entity_cache/store/persistent.rb', line 4

def self.included(cls)
  cls.class_exec do
    include Log::Dependency

    extend Build
    extend RegisterTelemetrySink

    configure :persistent_store

    dependency :telemetry, ::Telemetry

    initializer :subject

    virtual :configure
    abstract :get
    abstract :put

    prepend Configure
    prepend Get
    prepend Put
  end
end