Skip to content

Commit

Permalink
Adds not Implemented raises to Merb::Cache::Store class instance methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neighman committed Jun 21, 2008
1 parent 6357510 commit 691eb55
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions lib/merb-cache/cache_store.rb
Expand Up @@ -53,9 +53,7 @@ def load_store(store)
end
end

class Store
include ControllerInstanceMethods

class Store
attr_accessor :config

class NotFound < StandardError
Expand Down Expand Up @@ -86,6 +84,19 @@ def self.default_config
:host => "127.0.0.1:11211"
}.freeze
end

def get(key, store = :default)
raise NotImplmented
end
def put(key, data, expiry, store = :default)
raise NotImplmented
end
def cached?(key, store = :default)
raise NotImplmented
end
def expire!(key, store = :default)
raise NotImplmented
end

end # Store
end # Cache
Expand Down

0 comments on commit 691eb55

Please sign in to comment.