class CachedContainer(Container):
    def __init__(self, records=[]):
        Container.__init__(self)
        self.__connection = RedisConnection()
        self.__connection.connect()
        self.set(records)

    def set(self, records):
        self.__connection.insert('records', 'records', records)

    def get(self, filters=[]):
        pass

    def append(self, records=[]):
        self.__connection.append('records', 'records', records)

    def remove(self, records=[]):
        self.remove(records)

    def count(self, filters=[]):
        return self.__connection.count('records', 'records', filters)

    def sum(self, sum_field, filters=[]):
        return self.__connection.sum('records', 'records', sum_field, filters)
 def __init__(self, records=[]):
     Container.__init__(self)
     self.__connection = RedisConnection()
     self.__connection.connect()
     self.set(records)