mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-15 21:29:52 +05:00
CacheSv1.Clear API
This commit is contained in:
@@ -56,3 +56,9 @@ func (chSv1 *CacheSv1) RemoveItem(args *engine.ArgsGetCacheItem,
|
||||
reply *string) error {
|
||||
return chSv1.cacheS.V1RemoveItem(args, reply)
|
||||
}
|
||||
|
||||
// Clear will clear partitions in the cache (all for nil, none for empty slice)
|
||||
func (chSv1 *CacheSv1) Clear(cacheIDs []string,
|
||||
reply *string) error {
|
||||
return chSv1.cacheS.V1Clear(cacheIDs, reply)
|
||||
}
|
||||
|
||||
@@ -153,3 +153,10 @@ func (chS *CacheS) V1RemoveItem(args *ArgsGetCacheItem,
|
||||
*reply = utils.OK
|
||||
return
|
||||
}
|
||||
|
||||
func (chS *CacheS) V1Clear(cacheIDs []string,
|
||||
reply *string) (err error) {
|
||||
Cache.Clear(cacheIDs)
|
||||
*reply = utils.OK
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user