Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2004, Roxen IS.   //   // The Roxen WebServer main program.   //   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.967 2009/11/26 15:56:30 wellhard Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.968 2009/12/01 16:43:40 grubba Exp $";      //! @appears roxen   //!   //! The Roxen WebServer main program.      // The argument cache. Used by the image cache.   ArgCache argcache;      // Some headerfiles   #define IN_ROXEN
Roxen.git/server/base_server/roxen.pike:4514:    int key_exists( string key )    //! Does the key 'key' exist in the cache? Returns 1 if it does, 0    //! if it was not present.    {    if( cache[key] ) return 1;    array i = decode_id( key );    if(!i) return 0;    return low_key_exists( i[0] ) && low_key_exists( i[1] );    }    -  string store( mapping args ) +  string store( mapping args, int|void ignored_timeout )    //! Store a mapping (of purely encode_value:able data) in the    //! argument cache. The string returned is your key to retrieve the    //! data later.    {    array b = values(args), a = sort(indices(args),b);    LOCK();    int index_id = low_store( a );    string id = encode_id( index_id, low_store( b, index_id ) );    if( !cache[ id ] )    cache[ id ] = args+([]);