Sha256: e1afc3ee65ef505a3aaa15bf427d037943b551d4763b88004325f0447ed7ef43

Contents?: true

Size: 632 Bytes

Versions: 11

Compression:

Stored size: 632 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 OX_CACHE_H
#define OX_CACHE_H

#include <ruby.h>
#include <stdbool.h>

#define CACHE_MAX_KEY 35

struct _cache;

extern struct _cache *ox_cache_create(size_t size, VALUE (*form)(const char *str, size_t len), bool mark, bool locking);
extern void           ox_cache_free(struct _cache *c);
extern void           ox_cache_mark(struct _cache *c);
extern VALUE          ox_cache_intern(struct _cache *c, const char *key, size_t len, const char **keyp);

#endif /* OX_CACHE_H */

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ox-2.14.18 ext/ox/cache.h
ox-2.14.17 ext/ox/cache.h
ox-2.14.16 ext/ox/cache.h
ox-2.14.15 ext/ox/cache.h
ox-2.14.14 ext/ox/cache.h
ox-2.14.13 ext/ox/cache.h
ox-2.14.12 ext/ox/cache.h
ox-2.14.11 ext/ox/cache.h
ox-2.14.10 ext/ox/cache.h
ox-2.14.9 ext/ox/cache.h
ox-2.14.8 ext/ox/cache.h