[ Previous ] [ Contents ] [ Index ] [ Next ]



Create a new cache


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


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

[ Previous ] [ Contents ] [ Index ] [ Next ]
Copyright © 1998-99 America Online, Inc.