Show
Ignore:
Timestamp:
10/10/07 23:36:58 (7 years ago)
Author:
akihito
Message:

lang/javascript/jnext-cache-memcached: added params(exptime,flag)

Location:
lang/javascript/jnext-cachememcached
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/jnext-cachememcached/cache_memcached.js

    r440 r450  
    2222    this.host = args.server[0]; 
    2323    this.port = args.server[1]; 
     24    if(args.exptime){this.exptime = args.exptime}; 
     25    if(args.flag){this.flag = args.flag}; 
    2426    this.socket.connect(this.host,this.port); 
    2527    this.socket.onConnected  = function(){}; 
  • lang/javascript/jnext-cachememcached/index.html

    r441 r450  
    1010var returnValue; 
    1111 
    12 var mm = new CacheMemcached({ server: ['192.168.0.198',11212] }); 
     12var mm = new CacheMemcached({ 
     13                                server: ['192.168.0.10',11211], 
     14                                exptime: 3600, 
     15                                flag: 0 
     16                            }); 
    1317 
    1418function test_set() {