This pull request introduces a Clear method to various cache types and includes corresponding tests. The most important changes include adding the Clear method to the WriteHeavyCache, ReadHeavyCache, WriteHeavyCacheInteger, and ReadHeavyCacheInteger types, as well as updating the README.md to reflect these changes and adding tests for the new method.
Cache Method Additions:
cache.go: Added Clear method to WriteHeavyCache, ReadHeavyCache, WriteHeavyCacheInteger, and ReadHeavyCacheInteger types. ([[1]](diffhunk://#diff-b2eb74c816d6381ef0c5306d99c2ba6de8fc5538f5dc57535d7fd7dc36153042R30-R36), [[2]](diffhunk://#diff-b2eb74c816d6381ef0c5306d99c2ba6de8fc5538f5dc57535d7fd7dc36153042R52-R58), [[3]](diffhunk://#diff-b2eb74c816d6381ef0c5306d99c2ba6de8fc5538f5dc57535d7fd7dc36153042R134-R139), [[4]](diffhunk://#diff-b2eb74c816d6381ef0c5306d99c2ba6de8fc5538f5dc57535d7fd7dc36153042R166-R171))
Documentation Update:
README.md: Updated to include the Clear method for all cache types. ([README.mdR136-R156](diffhunk://#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R136-R156))
Test Additions:
cache_test.go: Added tests for the Clear method for WriteHeavyCache, ReadHeavyCache, WriteHeavyCacheInteger, and ReadHeavyCacheInteger types. ([[1]](diffhunk://#diff-7e0c97f6787834f9632ea5a23fe088bdd6d6fd5a131b79ef145b1533df09eeb1R33-R62), [[2]](diffhunk://#diff-7e0c97f6787834f9632ea5a23fe088bdd6d6fd5a131b79ef145b1533df09eeb1R123-R152))
This pull request introduces a
Clear
method to various cache types and includes corresponding tests. The most important changes include adding theClear
method to theWriteHeavyCache
,ReadHeavyCache
,WriteHeavyCacheInteger
, andReadHeavyCacheInteger
types, as well as updating theREADME.md
to reflect these changes and adding tests for the new method.Cache Method Additions:
cache.go
: AddedClear
method toWriteHeavyCache
,ReadHeavyCache
,WriteHeavyCacheInteger
, andReadHeavyCacheInteger
types. ([[1]](diffhunk://#diff-b2eb74c816d6381ef0c5306d99c2ba6de8fc5538f5dc57535d7fd7dc36153042R30-R36)
,[[2]](diffhunk://#diff-b2eb74c816d6381ef0c5306d99c2ba6de8fc5538f5dc57535d7fd7dc36153042R52-R58)
,[[3]](diffhunk://#diff-b2eb74c816d6381ef0c5306d99c2ba6de8fc5538f5dc57535d7fd7dc36153042R134-R139)
,[[4]](diffhunk://#diff-b2eb74c816d6381ef0c5306d99c2ba6de8fc5538f5dc57535d7fd7dc36153042R166-R171)
)Documentation Update:
README.md
: Updated to include theClear
method for all cache types. ([README.mdR136-R156](diffhunk://#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R136-R156)
)Test Additions:
cache_test.go
: Added tests for theClear
method forWriteHeavyCache
,ReadHeavyCache
,WriteHeavyCacheInteger
, andReadHeavyCacheInteger
types. ([[1]](diffhunk://#diff-7e0c97f6787834f9632ea5a23fe088bdd6d6fd5a131b79ef145b1533df09eeb1R33-R62)
,[[2]](diffhunk://#diff-7e0c97f6787834f9632ea5a23fe088bdd6d6fd5a131b79ef145b1533df09eeb1R123-R152)
)