Permalink
Browse files

add default values to Options

  • Loading branch information...
1 parent 3d7025c commit 48f29fa1ef6e93d24e230a0c4e98fa1be1f7d0ce @wmorgan committed Jun 25, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/leveldb.rb
View
@@ -86,6 +86,11 @@ class << self
end
class Options
+ DEFAULT_MAX_OPEN_FILES = 1000
+ DEFAULT_WRITE_BUFFER_SIZE = 4 * 1024 * 1024
+ DEFAULT_BLOCK_SIZE = 4 * 1024
+ DEFAULT_BLOCK_RESTART_INTERVAL = 16
+
attr_reader :create_if_missing, :error_if_exists,
:block_cache_size, :paranoid_checks,
:write_buffer_size, :max_open_files,

0 comments on commit 48f29fa

Please sign in to comment.