Skip to content

Instantly share code, notes, and snippets.

View Loupi's full-sized avatar

Louis-Pierre Beaumont Loupi

  • Futé Média
  • Quebec City, Canada
View GitHub Profile
@Loupi
Loupi / nested-redis.cs
Created May 25, 2012 15:37
Redis nested comments in C#
using System;
using System.Collections.Generic;
using System.IO;
using System.Xml.Serialization;
using ServiceStack.Redis;
namespace RedisNestedComments
{
public class CommentsRepository
{
@Loupi
Loupi / nested-redis.rb
Created May 22, 2012 01:54
Redis Nested Comments in Ruby
require 'redis'
require 'json'
class CommentsRepository
def initialize
@redis = Redis.new
end
def save(itemId, comment, parentId = nil)