Sha256: b78cfaaa23ccf4b74801c3b18778b53da061a2ef891126e11015dbc246d551fa
Contents?: true
Size: 394 Bytes
Versions: 1
Compression:
Stored size: 394 Bytes
Contents
module Hari class Relationship < Entity module Backend module LinkedList extend self def type :ll end def create(rel) %w(in out).each { |d| Hari.redis.lpush rel.key(d), rel.id } end def delete(rel) %w(in out).each { |d| Hari.redis.lrem rel.key(d), 1, 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/linked_list.rb |