recoil
Version:
Recoil - A state management library for React
20 lines (18 loc) • 388 B
Flow
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
* @format
* @oncall recoil
*/
;
export interface CacheImplementation<K, V> {
get(K): ?V;
set(K, V): void;
delete(K): void;
clear(): void;
size(): number;
}