Sha256: 936429868132e616fa9ebc31aa5143701793a54d3a10e834b268ab26f0fb8118

Contents?: true

Size: 151 Bytes

Versions: 13

Compression:

Stored size: 151 Bytes

Contents

module Lit
  class HashStorage < Hash
    def incr(key)
      self[key] ||= 0
      self[key] += 1
    end

    def prefix
      nil
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
lit-1.0.2 lib/lit/adapters/hash_storage.rb
lit-1.0.1 lib/lit/adapters/hash_storage.rb
lit-1.0 lib/lit/adapters/hash_storage.rb
lit-0.4.0.pre.alpha.5 lib/lit/adapters/hash_storage.rb
lit-0.4.0.pre.alpha.4 lib/lit/adapters/hash_storage.rb
lit-0.4.0.pre.alpha.3 lib/lit/adapters/hash_storage.rb
lit-0.4.0.pre.alpha.2 lib/lit/adapters/hash_storage.rb
motorefi-lit-0.3.3 lib/lit/adapters/hash_storage.rb
lit-0.4.0.pre.alpha.1 lib/lit/adapters/hash_storage.rb
lit-0.4.0.pre.alpha lib/lit/adapters/hash_storage.rb
lit-0.3.3 lib/lit/adapters/hash_storage.rb
lit-0.3.1 lib/lit/adapters/hash_storage.rb
lit-0.3.0 lib/lit/adapters/hash_storage.rb