Class: Pione::System::FileCache::FileCacheMethod
- Inherits:
-
Object
- Object
- Pione::System::FileCache::FileCacheMethod
- Defined in:
- lib/pione/system/file-cache.rb
Overview
FileCache is an interface class of cache methods.
Direct Known Subclasses
Instance Method Summary collapse
-
#get(uri) ⇒ String
Gets the cache location path of the URI.
-
#put(src, uri) ⇒ void
Puts the file into cache with the URI.
-
#shift(old_uri, new_uri) ⇒ void
Shitfs the URI.
Instance Method Details
#get(uri) ⇒ String
Gets the cache location path of the URI.
58 59 60 |
# File 'lib/pione/system/file-cache.rb', line 58 def get(uri) raise NotImplementedError end |
#put(src, uri) ⇒ void
This method returns an undefined value.
Puts the file into cache with the URI.
64 65 66 |
# File 'lib/pione/system/file-cache.rb', line 64 def put(src, uri) raise NotImplementedError end |
#shift(old_uri, new_uri) ⇒ void
This method returns an undefined value.
Shitfs the URI.
74 75 76 |
# File 'lib/pione/system/file-cache.rb', line 74 def shift(old_uri, new_uri) raise NotImplementedError end |