mirror of
https://github.com/rasterio/rasterio.git
synced 2025-12-08 17:36:12 +00:00
* Introducing cache.invalidate() and invalidate_all() Resolves #3275 * Improve documentation of cache module * Even more documentation
14 lines
288 B
Python
14 lines
288 B
Python
"""Tests of GDAL VSI cache invalidation."""
|
|
|
|
from rasterio import cache
|
|
|
|
|
|
def test_invalidate_all():
|
|
"""Cache is entirely invalidated."""
|
|
cache.invalidate_all()
|
|
|
|
|
|
def test_invalidate_pattern():
|
|
"""Cache is partially invalidated."""
|
|
cache.invalidate("https://example.com")
|