valkey-objects 0.1.5 → 0.1.7

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: 62927bbac6643c13516511a2c328cbc766bfe7f158768a96f95a8ce3cbd827aa
4
- data.tar.gz: 307fe0a9827410d1ddf7f6a9b6cb3470d0643bef7a15542723dc1062c3f8edb9
3
+ metadata.gz: 01e5229bd508fec6e3a97e55d1dc84ca3e80bbce262eeb93acd7e72a6040bc33
4
+ data.tar.gz: 669be360de85ad18b935cf072fbb0b93249425bb12953526f5045dfd06cfb63b
5
5
  SHA512:
6
- metadata.gz: a679b9e5a8e6ec0a674478392044bde83808b6dc97018beac21ef340222d023f5c2b3e02030fbae1adbab5d469f79a4ce78db40180dc3682e432b86dc6917686
7
- data.tar.gz: 203a4c234d1669e05f19311f6c4f6389de9100bdb13c777d85605507ae71f42e57fe79ac52c1ad73c764c2828ee9c61364aa2b1bc0bf8045d6c8bd58637506cd
6
+ metadata.gz: 2ddfff4e132c17f2a325b2bf0df69a58fcb4ebf4de8317b01c8b4a01e3eec469551467c0134a817f8731c9e69b9fd40d1e7fdcb9b2037759eed66f719d5b378c
7
+ data.tar.gz: b736aee121f99a64302832116f0cecefb402b7d0f1443dbc3957d9df0856b7140aeab396343bd6f29778dfeb955dd7cc56991f984c1552a1412aa64c6690cbf5
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Valkey
4
4
  module Objects
5
- VERSION = "0.1.5"
5
+ VERSION = "0.1.7"
6
6
  end
7
7
  end
@@ -305,6 +305,13 @@ module VK
305
305
  def value &b
306
306
  VK.redis.call("SMEMBERS", key).each_with_index { |e, i| b.call(i, e) }
307
307
  end
308
+ def include? k
309
+ if VK.redis.call("SMISMEMBER", key, k)[0] == 0
310
+ return false
311
+ else
312
+ return true
313
+ end
314
+ end
308
315
  def length
309
316
  VK.redis.call("SCARD", key)
310
317
  end
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.5
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Olson