C API Reference -- Ns_CacheCreateSz

### Ns_CacheCreateSz

#### Overview

Create a size-based cache

#### Syntax

        Ns_Cache* Ns_CacheCreateSz (
        char* name,
        int keys,
        size_t maxsize,
        Ns_Callback* freeProc
        );

#### Description

Create a new size-based cache (a cache that has a maximum size in bytes, specified by the `maxsize` argument). The `keys` argument is TCL_STRING_KEYS or TCL_ONE_WORD_KEYS or an integer >=2, which is the number of machine words needed to store a cache key. The `freeProc` argument is the Ns_Callback to free cache entry data.

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