Skip to content

Instantly share code, notes, and snippets.

View ajbeach2's full-sized avatar
🏠
Working from home

Alex ajbeach2

🏠
Working from home
View GitHub Profile
@ajbeach2
ajbeach2 / nested-redis.rb
Created September 27, 2015 20:51 — forked from Loupi/nested-redis.rb
Redis Nested Comments in Ruby
require 'redis'
require 'json'
class CommentsRepository
def initialize
@redis = Redis.new
end
def save(itemId, comment, parentId = nil)