Class: Pione::System::FileCache::NoCacheMethod

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

Overview

NoCacheMethod is a cache method for disabling file caching.

Instance Method Summary collapse

Methods inherited from FileCacheMethod

name, set_name

Instance Method Details

#cached?(location) ⇒ Boolean

Returns:

  • (Boolean)


238
239
240
# File 'lib/pione/system/file-cache.rb', line 238

def cached?(location)
  false
end

#clearObject



242
243
244
# File 'lib/pione/system/file-cache.rb', line 242

def clear
  # do nothing
end

#get(location) ⇒ Object



226
227
228
# File 'lib/pione/system/file-cache.rb', line 226

def get(location)
  location
end

#put(src, location) ⇒ Object



230
231
232
# File 'lib/pione/system/file-cache.rb', line 230

def put(src, location)
  # do nothing
end

#sync(old_location, new_location) ⇒ Object



234
235
236
# File 'lib/pione/system/file-cache.rb', line 234

def sync(old_location, new_location)
  # do nothing
end