refactor CacheService implementations