func (c *DirentCache) Size() uint64 {
	if c == nil {
		return 0
	}
	c.mu.Lock()
	size := c.currentSize
	c.mu.Unlock()
	return size
}
// Size returns the number of elements in the cache.
Size returns the number of elements in the cache.
// Size returns the number of elements in the cache .
func (c *DirentCache) Size() uint64 {
	if c == nil {
		return 0
	}
	c.mu.Lock()
	size := c.currentSize
	c.mu.Unlock()
	return size
}
func ( c * DirentCache ) Size ( ) uint64 { if c == nil { return 0 } c . mu . Lock ( ) size := c . currentSize c . mu . Unlock ( ) return size }
Size returns the number of elements in the cache.
Size returns the number of elements in the cache .