1 #ifndef ACL_CACHE2_INCLUDE_H 2 #define ACL_CACHE2_INCLUDE_H 75 const char *key,
void *value,
int timeout);
134 const char *key,
int timeout);
147 const char *key,
void *value,
int timeout,
int *exist);
ACL_API void acl_cache2_unrefer2(ACL_CACHE2 *cache2, const char *key)
struct ACL_CACHE2_INFO ACL_CACHE2_INFO
ACL_API void acl_cache2_refer(ACL_CACHE2_INFO *info)
ACL_API ACL_CACHE2_INFO * acl_cache2_tail(ACL_CACHE2 *cache2)
ACL_API ACL_CACHE2_INFO * acl_cache2_update(ACL_CACHE2 *cache2, const char *key, int timeout)
ACL_API int acl_cache2_size(ACL_CACHE2 *cache2)
ACL_API ACL_CACHE2_INFO * acl_cache2_upsert(ACL_CACHE2 *cache2, const char *key, void *value, int timeout, int *exist)
void(* free_fn)(const ACL_CACHE2_INFO *, void *)
ACL_API ACL_CACHE2_INFO * acl_cache2_update2(ACL_CACHE2 *cache2, ACL_CACHE2_INFO *info, int timeout)
ACL_API int acl_cache2_clean(ACL_CACHE2 *cache2, int force)
ACL_API void acl_cache2_unlock(ACL_CACHE2 *cache2)
ACL_API ACL_CACHE2_INFO * acl_cache2_locate(ACL_CACHE2 *cache2, const char *key)
ACL_API void acl_cache2_walk(ACL_CACHE2 *cache2, void(*walk_fn)(ACL_CACHE2_INFO *, void *), void *arg)
ACL_API void acl_cache2_free(ACL_CACHE2 *cache2)
ACL_API void acl_cache2_refer2(ACL_CACHE2 *cache2, const char *key)
ACL_API int acl_cache2_delete(ACL_CACHE2 *cache2, ACL_CACHE2_INFO *info)
ACL_API void * acl_cache2_find(ACL_CACHE2 *cache2, const char *key)
ACL_API void acl_cache2_lock(ACL_CACHE2 *cache2)
ACL_API int acl_cache2_timeout(ACL_CACHE2 *cache2)
ACL_API ACL_CACHE2_INFO * acl_cache2_enter(ACL_CACHE2 *cache2, const char *key, void *value, int timeout)
ACL_API int acl_cache2_delete2(ACL_CACHE2 *cache2, const char *key)
ACL_API void acl_cache2_unrefer(ACL_CACHE2_INFO *info)
ACL_API ACL_CACHE2_INFO * acl_cache2_head(ACL_CACHE2 *cache2)
ACL_API ACL_CACHE2 * acl_cache2_create(int max_size, void(*free_fn)(const ACL_CACHE2_INFO *, void *))