Provide st_cache_invalidate and invalidate when setting extension, closes #7, #8