@@ -16,10 +16,10 @@ VFBquery includes **automatic server-side caching** for optimal performance - no
1616import vfbquery as vfb
1717
1818# First call: ~1-2 seconds (fetches data + populates cache)
19- result = vfb.get_term_info(' FBbt_00003686' )
19+ vfb.get_term_info(' FBbt_00003686' )
2020
2121# Subsequent calls: <0.1 seconds (served from cache)
22- result = vfb.get_term_info(' FBbt_00003686' ) # Lightning fast!
22+ vfb.get_term_info(' FBbt_00003686' ) # Lightning fast!
2323```
2424
2525### Default Caching Features
@@ -37,17 +37,15 @@ VFBquery uses server-side SOLR caching that's automatically managed. Local memor
3737``` python
3838import vfbquery as vfb
3939
40- # Local memory cache settings (optional enhancement)
41- vfb.set_cache_ttl(720 ) # 1 month instead of 3
40+ # Local memory cache settings (optional enhancement)
41+ vfb.set_cache_ttl(720 ) # 1 month instead of 3
4242vfb.set_cache_memory_limit(512 ) # 512MB instead of 2GB
4343
44- # Monitor local cache performance
45- stats = vfb.get_vfbquery_cache_stats()
46- print (f " Local cache hit rate: { stats[' hit_rate_percent' ]} % " )
44+ # Monitor cache performance
45+ vfb.get_vfbquery_cache_stats() # Returns cache statistics
4746
48- # Get current configuration
49- config = vfb.get_cache_config()
50- print (f " TTL: { config[' cache_ttl_hours' ]} h, Memory: { config[' memory_cache_size_mb' ]} MB " )
47+ # Get configuration
48+ vfb.get_cache_config() # Returns current config
5149```
5250
5351Disable all caching if needed:
0 commit comments