Sha256: c815b5fc147d30dadc4acd37412bc436234df5844c5647eca1a1524655c0db5a
Contents?: true
Size: 766 Bytes
Versions: 29
Compression:
Stored size: 766 Bytes
Contents
// Copyright (c) 2021 Peter Ohler. All rights reserved. // Licensed under the MIT License. See LICENSE file in the project root for license details. #ifndef CACHE_H #define CACHE_H #include <ruby.h> #include <stdbool.h> #define CACHE_MAX_KEY 35 struct _cache; extern struct _cache *cache_create(size_t size, VALUE (*form)(const char *str, size_t len), bool mark, bool locking); extern void cache_free(struct _cache *c); extern void cache_mark(struct _cache *c); extern void cache_set_form(struct _cache *c, VALUE (*form)(const char *str, size_t len)); extern VALUE cache_intern(struct _cache *c, const char *key, size_t len); extern void cache_set_expunge_rate(struct _cache *c, int rate); #endif /* CACHE_H */
Version data entries
29 entries across 29 versions & 1 rubygems