| 162 | }; |
| 163 | |
| 164 | static inline common_cache_params_t default_common_cache_params(void) { |
| 165 | common_cache_params_t params; |
| 166 | params.cache_size = 1 * GiB; |
| 167 | params.default_ttl = (uint64_t)(364 * 86400); |
| 168 | params.hashpower = 20; |
| 169 | params.consider_obj_metadata = false; |
| 170 | return params; |
| 171 | } |
| 172 | |
| 173 | /** |
| 174 | * initialize the cache struct, must be called in all cache_init functions |
no outgoing calls