C API Reference -- Ns_CacheCreate

### Ns_CacheCreate

#### Overview

Create a new cache

#### Syntax

        Ns_Cache* Ns_CacheCreate (
        char* name,
        int keys,
        time_t timeout,
        Ns_Callback* freeProc
        );

#### Description

Create a new cache with the specified `name`. The `keys` argument is the size of the cache key in system words. The `timeout` argument is the time for cache entries to live. The `freeProc` argument is the Ns_Callback to free cache entry data.

For a good example of how to use the Ns_Cache* functions, look at nsd/fastpath.c.

Top of Page
Copyright © 1998-99 America Online, Inc.