valkey-objects 0.1.3 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c254e2075a8930f89564a2ee4f6fe7e9cde96f2bbcd82ac360783e368ce9241a
4
- data.tar.gz: 2fef0cdc246073f5774a40edb573f64a3dcb99a19e59cf662fb67b247e5083ef
3
+ metadata.gz: 62927bbac6643c13516511a2c328cbc766bfe7f158768a96f95a8ce3cbd827aa
4
+ data.tar.gz: 307fe0a9827410d1ddf7f6a9b6cb3470d0643bef7a15542723dc1062c3f8edb9
5
5
  SHA512:
6
- metadata.gz: b132eb7b994c680429f46d97bd2fcacb68b4b9ab7e4940a162bf045cf5e84690ba84ede5ef4607a3bbef5e491177ce0ee90c553573c52ad9f6f4acdc142cbcc5
7
- data.tar.gz: 50e7079727b7652ae0cbb2bc1e48a078ae2cca6a30f46313993b6c7a2d1aac2da302f36e617a0febcc759b83a409b3dd1caa04c05bad6b6638a1e790b9c59982
6
+ metadata.gz: a679b9e5a8e6ec0a674478392044bde83808b6dc97018beac21ef340222d023f5c2b3e02030fbae1adbab5d469f79a4ce78db40180dc3682e432b86dc6917686
7
+ data.tar.gz: 203a4c234d1669e05f19311f6c4f6389de9100bdb13c777d85605507ae71f42e57fe79ac52c1ad73c764c2828ee9c61364aa2b1bc0bf8045d6c8bd58637506cd
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Valkey
4
4
  module Objects
5
- VERSION = "0.1.3"
5
+ VERSION = "0.1.5"
6
6
  end
7
7
  end
@@ -167,6 +167,12 @@ module VK
167
167
  def initialize k
168
168
  @key = k
169
169
  end
170
+ def delete!
171
+ VK.redis.call("DEL", key);
172
+ end
173
+ def expire sec
174
+ VK.redis.call("EXPIRE", key, sec);
175
+ end
170
176
  end
171
177
 
172
178
  class N < O
@@ -260,6 +266,9 @@ module VK
260
266
  def []= k,v
261
267
  VK.redis.call("HMSET", key, k, v);
262
268
  end
269
+ def to_h
270
+ VK.redis.call("HGETALL", key);
271
+ end
263
272
  end
264
273
 
265
274
  class Q < O
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: valkey-objects
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Olson