#include <apr_pools.h>
#include <apr_hash.h>
#include "svn_types.h"
#include "svn_error.h"
Go to the source code of this file.
Typedefs | |
| typedef svn_error_t *(* | svn_cache_dup_func_t )(void **out, void *in, apr_pool_t *pool) |
| A function type for copying an object in into a different pool pool and returning the result in *out. | |
| typedef svn_error_t *(* | svn_cache_deserialize_func_t )(void **out, const char *data, apr_size_t data_len, apr_pool_t *pool) |
| A function type for deserializing an object *out from the string data of length data_len in the pool pool. | |
| typedef svn_error_t *(* | svn_cache_serialize_func_t )(char **data, apr_size_t *data_len, void *in, apr_pool_t *pool) |
| A function type for serializing an object in into bytes. | |
| typedef svn_error_t *(* | svn_cache_error_handler_t )(svn_error_t *err, void *baton, apr_pool_t *pool) |
| A function type for transforming or ignoring errors. | |
| typedef svn_memcache_t | svn_memcache_t |
| A wrapper around apr_memcache_t, provided essentially so that the Subversion public API doesn't depend on whether or not you have access to the APR memcache libraries. | |
| typedef svn_cache_t | svn_cache_t |
| Opaque type for an in-memory cache. | |
Functions | |
| svn_error_t * | svn_cache_create_inprocess (svn_cache_t **cache_p, svn_cache_dup_func_t dup_func, apr_ssize_t klen, apr_int64_t pages, apr_int64_t items_per_page, svn_boolean_t thread_safe, apr_pool_t *pool) |
| Creates a new cache in *cache_p. | |
| svn_error_t * | svn_cache_create_memcache (svn_cache_t **cache_p, svn_memcache_t *memcache, svn_cache_serialize_func_t serialize_func, svn_cache_deserialize_func_t deserialize_func, apr_ssize_t klen, const char *prefix, apr_pool_t *pool) |
| Creates a new cache in *cache_p, communicating to a memcached process via memcache. | |
| svn_error_t * | svn_cache_make_memcache_from_config (svn_memcache_t **memcache_p, svn_config_t *config, apr_pool_t *pool) |
| Given config, returns an APR memcached interface in *memcache_p allocated in pool if config contains entries in the SVN_CACHE_CONFIG_CATEGORY_MEMCACHED_SERVERS section describing memcached servers; otherwise, sets *memcache_p to NULL. | |
| svn_error_t * | svn_cache_set_error_handler (svn_cache_t *cache, svn_cache_error_handler_t handler, void *baton, apr_pool_t *pool) |
| Sets handler to be cache's error handling routine. | |
| svn_error_t * | svn_cache_get (void **value, svn_boolean_t *found, const svn_cache_t *cache, const void *key, apr_pool_t *pool) |
| Fetches a value indexed by key from cache into *value, setting *found to TRUE iff it is in the cache and FALSE if it is not found. | |
| svn_error_t * | svn_cache_set (svn_cache_t *cache, const void *key, void *value, apr_pool_t *pool) |
| Stores the value value under the key key in cache. | |
| svn_error_t * | svn_cache_iter (svn_boolean_t *completed, const svn_cache_t *cache, svn_iter_apr_hash_cb_t func, void *baton, apr_pool_t *pool) |
| Iterates over the elements currently in cache, calling func for each one until there are no more elements or func returns an error. | |
Definition in file svn_cache.h.
1.3.9.1