Sha256: 409a6484f5bd468a559ef82743ab142a3cd146810f751ee298c3e6bc0a43bab8
Contents?: true
Size: 404 Bytes
Versions: 1
Compression:
Stored size: 404 Bytes
Contents
module Hari class Relationship < Entity module Backend module SortedSet extend self def type :ss end def create(rel) %w(in out).each { |d| Hari.redis.zadd rel.key(d), rel.weight(d), rel.id } end def delete(rel) %w(in out).each { |d| Hari.redis.zrem rel.key(d), rel.id } end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hari-0.0.1 | lib/hari/relationship/sorted_set.rb |