Skip to content

Commit 28caa2e

Browse files
committed
renamed Clean() func to Purge()
1 parent 2f7ea33 commit 28caa2e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

s3fifo/s3fifo.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func (s *S3FIFO[K, V]) Len() int {
102102
return s.small.length() + s.main.length()
103103
}
104104

105-
func (s *S3FIFO[K, V]) Clean() {
105+
func (s *S3FIFO[K, V]) Purge() {
106106
s.lock.Lock()
107107
defer s.lock.Unlock()
108108

sieve/sieve.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func (s *Sieve[K, V]) Len() int {
8383
return s.ll.Len()
8484
}
8585

86-
func (s *Sieve[K, V]) Clean() {
86+
func (s *Sieve[K, V]) Purge() {
8787
s.lock.Lock()
8888
defer s.lock.Unlock()
8989

types.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ type Cache[K comparable, V any] interface {
1717
// Len returns the number of entries in the cache.
1818
Len() int
1919

20-
// Clean clears all cache entries
21-
Clean()
20+
// Purge clears all cache entries
21+
Purge()
2222
}

0 commit comments

Comments
 (0)