Class: Kvom::Storage::FileSystemStorage

Inherits:
Base
  • Object
show all
Defined in:
lib/kvom/storage/file_system_storage.rb

Instance Attribute Summary

Attributes inherited from Base

#config

Instance Method Summary collapse

Methods inherited from Base

#get, #put

Constructor Details

#initialize(options) ⇒ FileSystemStorage

Returns a new instance of FileSystemStorage.



8
9
10
11
12
# File 'lib/kvom/storage/file_system_storage.rb', line 8

def initialize(options)
  super
  path = config[:path] or raise "No path specified"
  @storage = ActiveSupport::Cache::FileStore.new(path, options)
end