#include <wasm_storage_quota.h>
|
| void | GetStorageInfo (std::function< void(const StorageInfo &)> callback) |
| |
| void | CompressAndStore (const std::string &key, const std::vector< uint8_t > &data, std::function< void(bool success)> callback) |
| |
| void | LoadAndDecompress (const std::string &key, std::function< void(std::vector< uint8_t >)> callback) |
| |
| void | EvictOldest (int count, std::function< void(int evicted)> callback) |
| |
| void | EvictToTarget (float target_percent, std::function< void(int evicted)> callback) |
| |
| void | UpdateAccessTime (const std::string &key) |
| |
| void | GetStoredItems (std::function< void(std::vector< StorageItem >)> callback) |
| |
| void | DeleteItem (const std::string &key, std::function< void(bool success)> callback) |
| |
| void | ClearAll (std::function< void()> callback) |
| |
Definition at line 353 of file wasm_storage_quota.h.
◆ GetStorageInfo()
| void yaze::app::platform::WasmStorageQuota::GetStorageInfo |
( |
std::function< void(const StorageInfo &)> | callback | ) |
|
|
inline |
◆ CompressAndStore()
| void yaze::app::platform::WasmStorageQuota::CompressAndStore |
( |
const std::string & | key, |
|
|
const std::vector< uint8_t > & | data, |
|
|
std::function< void(bool success)> | callback ) |
|
inline |
◆ LoadAndDecompress()
| void yaze::app::platform::WasmStorageQuota::LoadAndDecompress |
( |
const std::string & | key, |
|
|
std::function< void(std::vector< uint8_t >)> | callback ) |
|
inline |
◆ EvictOldest()
| void yaze::app::platform::WasmStorageQuota::EvictOldest |
( |
int | count, |
|
|
std::function< void(int evicted)> | callback ) |
|
inline |
◆ EvictToTarget()
| void yaze::app::platform::WasmStorageQuota::EvictToTarget |
( |
float | target_percent, |
|
|
std::function< void(int evicted)> | callback ) |
|
inline |
◆ UpdateAccessTime()
| void yaze::app::platform::WasmStorageQuota::UpdateAccessTime |
( |
const std::string & | key | ) |
|
|
inline |
◆ GetStoredItems()
| void yaze::app::platform::WasmStorageQuota::GetStoredItems |
( |
std::function< void(std::vector< StorageItem >)> | callback | ) |
|
|
inline |
◆ DeleteItem()
| void yaze::app::platform::WasmStorageQuota::DeleteItem |
( |
const std::string & | key, |
|
|
std::function< void(bool success)> | callback ) |
|
inline |
◆ ClearAll()
| void yaze::app::platform::WasmStorageQuota::ClearAll |
( |
std::function< void()> | callback | ) |
|
|
inline |
◆ IsSupported()
| static bool yaze::app::platform::WasmStorageQuota::IsSupported |
( |
| ) |
|
|
inlinestatic |
◆ Get()
◆ kDefaultTargetUsage
| constexpr float yaze::app::platform::WasmStorageQuota::kDefaultTargetUsage = 70.0f |
|
staticconstexpr |
◆ kWarningThreshold
| constexpr float yaze::app::platform::WasmStorageQuota::kWarningThreshold = 80.0f |
|
staticconstexpr |
◆ kCriticalThreshold
| constexpr float yaze::app::platform::WasmStorageQuota::kCriticalThreshold = 90.0f |
|
staticconstexpr |
◆ kMinQuotaBytes
| constexpr size_t yaze::app::platform::WasmStorageQuota::kMinQuotaBytes = 50 * 1024 * 1024 |
|
staticconstexpr |
The documentation for this class was generated from the following file: