Permalink
Browse files

+ default content of a redis/file index

  • Loading branch information...
1 parent bd2acb5 commit 6f15db8cb2d2f963e52cc88fe267fe26eaccd289 @floere committed Oct 24, 2011
Showing with 12 additions and 0 deletions.
  1. +6 −0 server/lib/picky/backends/file/basic.rb
  2. +6 −0 server/lib/picky/backends/redis/basic.rb
@@ -30,6 +30,12 @@ def initialize cache_path
@mapping_file = Memory::JSON.new "#{cache_path}.file_mapping.#{extension}"
end
+ # The initial content before loading.
+ #
+ def default
+ nil
+ end
+
# The default extension for index files is "index".
#
def extension
@@ -23,6 +23,12 @@ def initialize client, namespace
@namespace = namespace
end
+ # The initial content before loading.
+ #
+ def default
+ nil
+ end
+
# Returns itself.
#
def load

0 comments on commit 6f15db8

Please sign in to comment.