/// <summary> /// Gets all of the items of the specified entity type. /// </summary> /// <typeparam name="ENTITY"></typeparam> /// <returns></returns> public List <ENTITY> GetAll <ENTITY>() where ENTITY : class { return(RedisEntityMapper.GetAll <ENTITY>(RedisClient)); }
/// <summary> /// Inserts a new entity into redis. /// </summary> /// <typeparam name="ENTITY"></typeparam> /// <param name="entity"></param> /// <returns></returns> public ENTITY Insert <ENTITY>(ENTITY entity) where ENTITY : class { return(RedisEntityMapper.Insert(RedisClient, entity)); }