Class: CacheStore Private
Overview
This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.
CacheStore provides methods to mutate and fetch data from a persistent storage mechanism.
Direct Known Subclasses
Instance Method Summary collapse
-
#delete! ⇒ Object
abstract
private
Deletes data from the cache based on a condition defined in a concrete class.
-
#fetch ⇒ Object
abstract
private
Fetches cached values in persistent storage according to the type of data stored.
- #initialize(database) ⇒ nil constructor private
-
#update! ⇒ Object
abstract
private
Inserts new values or updates existing cached values to persistent storage.
Constructor Details
#initialize(database) ⇒ nil
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
168 169 170 |
# File 'cache_store.rb', line 168 def initialize(database) @database = database end |
Instance Method Details
#delete! ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Deletes data from the cache based on a condition defined in a concrete class.
190 191 192 |
# File 'cache_store.rb', line 190 def delete!(*) raise NotImplementedError end |
#fetch ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Fetches cached values in persistent storage according to the type of data stored.
183 184 185 |
# File 'cache_store.rb', line 183 def fetch(*) raise NotImplementedError end |
#update! ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Inserts new values or updates existing cached values to persistent storage.
175 176 177 |
# File 'cache_store.rb', line 175 def update!(*) raise NotImplementedError end |