Class: Chrysalis::Cache
- Includes:
- Singleton
- Defined in:
- lib/chrysalis/manifest.rb
Overview
Stores the results of retrieving a working copy from a repository. – The cache is implemented as hash, where each URL-based key serves as an index to another hash. The entire structure is serialized to the cache file. When deserializing, the structure is used to instantiate WorkingCopy instances, effectively recovering the state of previously retrieved working copies.
Instance Method Summary collapse
- #[](url) ⇒ Object
- #[]=(url, working_copy) ⇒ Object
-
#initialize ⇒ Cache
constructor
:nodoc:.
Constructor Details
#initialize ⇒ Cache
:nodoc:
64 65 66 67 |
# File 'lib/chrysalis/manifest.rb', line 64 def initialize # :nodoc: @hash = {} load end |