Sha256: 8a6c2f34dffbeb5e38d625d0a0cafa645a2c734f382b82363feab25036010ba7
Contents?: true
Size: 871 Bytes
Versions: 8
Compression:
Stored size: 871 Bytes
Contents
#ifndef AWS_COMMON_FIFO_CACHE_H #define AWS_COMMON_FIFO_CACHE_H /** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/common/cache.h> AWS_EXTERN_C_BEGIN /** * Initializes the first-in-first-out cache. Sets up the underlying linked hash table. * Once `max_items` elements have been added, the oldest(first-in) item will * be removed. For the other parameters, see aws/common/hash_table.h. Hash table * semantics of these arguments are preserved. */ AWS_COMMON_API struct aws_cache *aws_cache_new_fifo( struct aws_allocator *allocator, aws_hash_fn *hash_fn, aws_hash_callback_eq_fn *equals_fn, aws_hash_callback_destroy_fn *destroy_key_fn, aws_hash_callback_destroy_fn *destroy_value_fn, size_t max_items); AWS_EXTERN_C_END #endif /* AWS_COMMON_FIFO_CACHE_H */
Version data entries
8 entries across 8 versions & 1 rubygems