added increment method for cache.