Class: Pione::System::FileCache::FileCacheMethod

Inherits:
Object
  • Object
show all
Defined in:
lib/pione/system/file-cache.rb

Overview

FileCache is an interface class of cache methods.

Direct Known Subclasses

SimpleCacheMethod

Instance Method Summary collapse

Instance Method Details

#get(uri) ⇒ String

Gets the cache location path of the URI.

Parameters:

  • uri (String)

    resource uri

Returns:

Raises:

  • (NotImplementedError)


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.

Raises:

  • (NotImplementedError)


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.

Parameters:

  • old_uri (String)

    old resource uri

  • new_uri (String)

    new resource uri

Raises:

  • (NotImplementedError)


74
75
76
# File 'lib/pione/system/file-cache.rb', line 74

def shift(old_uri, new_uri)
  raise NotImplementedError
end