valkey-objects 0.1.3 → 0.1.4

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: f7c6c5ce3863e4e9bb256dd1218cd56f62c4b08a48c7c1f5a686aabcfc7d7308
4
+ data.tar.gz: 147d64b217213c6eb1ff04a29a0e7dc51a8a46e45c2b0b087042d2df5d4aaa19
5
5
  SHA512:
6
- metadata.gz: b132eb7b994c680429f46d97bd2fcacb68b4b9ab7e4940a162bf045cf5e84690ba84ede5ef4607a3bbef5e491177ce0ee90c553573c52ad9f6f4acdc142cbcc5
7
- data.tar.gz: 50e7079727b7652ae0cbb2bc1e48a078ae2cca6a30f46313993b6c7a2d1aac2da302f36e617a0febcc759b83a409b3dd1caa04c05bad6b6638a1e790b9c59982
6
+ metadata.gz: 24a0bbca6bc325880dc8041b7ba5f76d4ce66863d39c5ba775a9199aab2a569df88e29df4b742f681831667b5a92170418eb796fbdecd8d688573e186d0f58fc
7
+ data.tar.gz: 3284592d59354a5ccbf066cde5f715d9eef79c5d3e022ce93589e02c57cf23b0c88b09d4b93ecb4887900ea05f3e5dd8951f40d509b3e915834824c61f8ded57
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Valkey
4
4
  module Objects
5
- VERSION = "0.1.3"
5
+ VERSION = "0.1.4"
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
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.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Olson