This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class BookStackExtensions | |
{ | |
public static Task<T> Store<T>(this RedisConnection redis, int db, T entity, int expire) | |
{ | |
var id = entity.GetType().GetProperty("Id").GetGetMethod().Invoke(entity, new object[0]); | |
return redis.Store(db, id, entity, expire); | |
} | |
public static Task<T> Store<T>(this RedisConnection redis, int db, object id, T entity, int expire) | |
{ |