public async Task <bool> ExistsAsync(T entity) { var entityId = PrimaryEntityIdLocator(entity); var redisKey = PrimaryCacheKeyFormatter(entityId); return(await RedisDatabase.KeyExistsAsync(redisKey).ConfigureAwait(false)); }
public async Task <bool> ExistsAsync(string entityId) { var cacheKey = PrimaryCacheKeyFormatter(entityId); return(await RedisDatabase.KeyExistsAsync(cacheKey).ConfigureAwait(false)); }