summaryrefslogtreecommitdiff
path: root/subversion/libsvn_subr/cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'subversion/libsvn_subr/cache.h')
-rw-r--r--subversion/libsvn_subr/cache.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/subversion/libsvn_subr/cache.h b/subversion/libsvn_subr/cache.h
index 5029cef..62a1f8e 100644
--- a/subversion/libsvn_subr/cache.h
+++ b/subversion/libsvn_subr/cache.h
@@ -38,6 +38,12 @@ typedef struct svn_cache__vtable_t {
const void *key,
apr_pool_t *result_pool);
+ /* See svn_cache__has_key(). */
+ svn_error_t *(*has_key)(svn_boolean_t *found,
+ void *cache_implementation,
+ const void *key,
+ apr_pool_t *scratch_pool);
+
/* See svn_cache__set(). */
svn_error_t *(*set)(void *cache_implementation,
const void *key,
@@ -99,6 +105,10 @@ struct svn_cache__t {
/* Total number of function calls that returned an error. */
apr_uint64_t failures;
+
+ /* Cause all getters to act as though the cache contains no data.
+ (Currently this never becomes set except in maintainer builds.) */
+ svn_boolean_t pretend_empty;
};