mirror of
https://github.com/AmanTahiliani/box-box.git
synced 2026-12-05 14:44:41 -05:00
UI Refresh
This commit is contained in:
1 parent
cb77df0eb6
commit
95a4f755cb
13 files changed
+2541
-539
No files matched your search
@@ -18,3 +18,13 @@ func NewOpenF1Client(url string, timeout time.Duration) *OpenF1Client {
|
||||
cache: NewFileCache(),
|
||||
}
|
||||
}
|
||||
|
||||
// CacheStats returns the cache hit/miss statistics.
|
||||
func (c *OpenF1Client) CacheStats() CacheStats {
|
||||
return c.cache.Stats()
|
||||
}
|
||||
|
||||
// CacheSize returns the number of cached entries and total size in bytes.
|
||||
func (c *OpenF1Client) CacheSize() (int, int64) {
|
||||
return c.cache.Size()
|
||||
}
|
||||
Reference in new issue
Block a user