bitcask 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/README.markdown +29 -0
  2. data/lib/bitcask/version.rb +1 -1
  3. metadata +4 -4
@@ -77,6 +77,35 @@ Seek, rewind, and pos are also supported.
77
77
 
78
78
  You'd be surprised how fast this is. 10,000 values/sec, easy.
79
79
 
80
+ Utility
81
+ -------
82
+
83
+ bin/bitcask is a small tool to inspect bitcask files. It's designed for
84
+ integration with Riak (parsing keys as erlang {bucket, key} tuples, for
85
+ instance), but can be content agnostic as well. It uses various tricks to do
86
+ things quickly, like only scanning hintfiles when values aren't involved.
87
+
88
+ Show all comments.
89
+
90
+ bitcask /var/lib/riak --bucket comments --color all
91
+
92
+ Get the keys of the last 10 users written to bitcask
93
+
94
+ bitcask /var/lib/riak --bucket users --color -f '%k' last --limit 10
95
+
96
+ Show the full structure of a given user. Here the two arguments after `get`
97
+ are presumed to be --bucket and --key.
98
+
99
+ bitcask /var/lib/riak --verbose-values get users sauron
100
+
101
+ Show all the changes to a given key and value over time.
102
+
103
+ bitcask /var/lib/riak --bucket users --key sauron --format '%v' dump
104
+
105
+ Count a bucket in a specific bitcask.
106
+
107
+ bitcask /var/lib/riak/bitcask/0 --bucket magic_rings count
108
+
80
109
  Status
81
110
  ------
82
111
 
@@ -1,3 +1,3 @@
1
1
  class Bitcask
2
- VERSION = '0.1.1'
2
+ VERSION = '0.2.0'
3
3
  end
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 1
8
- - 1
9
- version: 0.1.1
7
+ - 2
8
+ - 0
9
+ version: 0.2.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kyle Kingsbury
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-06-11 00:00:00 -07:00
17
+ date: 2011-06-29 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies: []
20
20