Esempio n. 1
0
        public async Task <bool> ExistsAsync(T entity)
        {
            var entityId = PrimaryEntityIdLocator(entity);
            var redisKey = PrimaryCacheKeyFormatter(entityId);

            return(await RedisDatabase.KeyExistsAsync(redisKey).ConfigureAwait(false));
        }
Esempio n. 2
0
        public async Task <bool> ExistsAsync(string entityId)
        {
            var cacheKey = PrimaryCacheKeyFormatter(entityId);

            return(await RedisDatabase.KeyExistsAsync(cacheKey).ConfigureAwait(false));
        }