- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for registerFileCache (0.09 seconds)
-
src/main/java/jcifs/internal/smb2/lease/LeaseManager.java
} } /** * Register a file with cache for a path * * @param path file path * @param file SmbFile instance */ public void registerFileCache(String path, SmbFile file) { if (file != null) { fileCache.put(path, new WeakReference<>(file)); } } /** * Evict oldest leases based on LRU *Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 18.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/lease/LeaseManagerTest.java
String path = "/share/cached.txt"; Smb2LeaseKey key = leaseManager.requestLease(path, Smb2LeaseState.SMB2_LEASE_FULL); // Register a mock file with cache leaseManager.registerFileCache(path, null); // Using null for simplicity in test // Handle lease break which should trigger cache operations leaseManager.handleLeaseBreak(key, Smb2LeaseState.SMB2_LEASE_NONE);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 00:16:17 GMT 2025 - 13.2K bytes - Click Count (0)