Clear all Elasticache cached data. Useful for testing or when you need to free memory.
import { clearElastiCacheCache, getElastiCacheCacheStats } from 'aws-instance-info'console.log(getElastiCacheCacheStats()) // { nodes: 10, families: 3, infoLoaded: true }clearElastiCacheCache()console.log(getElastiCacheCacheStats()) // { nodes: 0, families: 0, infoLoaded: false } Copy
import { clearElastiCacheCache, getElastiCacheCacheStats } from 'aws-instance-info'console.log(getElastiCacheCacheStats()) // { nodes: 10, families: 3, infoLoaded: true }clearElastiCacheCache()console.log(getElastiCacheCacheStats()) // { nodes: 0, families: 0, infoLoaded: false }
Clear all Elasticache cached data. Useful for testing or when you need to free memory.