# dkim_getcachestats()

SYNOPSIS |
    #include <dkim.h>

    void dkim_getcachestats(u_int *queries,
    			u_int *hits,
    			u_int *expired);
    );
Retrieve libdkim caching statistics.
DESCRIPTION |
Called When | `dkim_getcachestats()` can be called at any time.
ARGUMENTS |
Argument | Description
--- | ---
queries | Pointer to an unsigned integer which will receive the number of queries libdkim has processed. This can be NULL if that datum is not of interest to the caller.
hits | Pointer to an unsigned integer which will receive the number of queries which were found in the cache being maintained by the library. This can be NULL if that datum is not of interest to the caller.
expired | Pointer to an unsigned integer which will receive the number of queries which were found in the cache but whose time-to-live value had expired and thus a re-query was required. This can be NULL if that datum is not of interest to the caller.
NOTES | All values can be zero even if caching is not enabled. Use `dkim_flush_cache()` to see if caching is in effect. Caching is enabled via the setting of the `DKIM_LIBFLAGS_CACHE` library option using the `dkim_options()` function. Caching must be enabled in the library at compile time since it establishes an extra library dependency.

Copyright (c) 2007 Sendmail, Inc. and its suppliers. All rights reserved.
By using this file, you agree to the terms and conditions set forth in the LICENSE.