Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. 'use strict'
  2. const ls = require('../ls.js')
  3. const get = require('../get.js')
  4. const put = require('../put.js')
  5. const rm = require('../rm.js')
  6. const verify = require('../verify.js')
  7. const setLocale = require('../lib/util/y.js').setLocale
  8. const clearMemoized = require('../lib/memoization.js').clearMemoized
  9. const tmp = require('../lib/util/tmp.js')
  10. setLocale('es')
  11. const x = module.exports
  12. x.ls = cache => ls(cache)
  13. x.ls.flujo = cache => ls.stream(cache)
  14. x.saca = (cache, clave, ops) => get(cache, clave, ops)
  15. x.saca.porHacheo = (cache, hacheo, ops) => get.byDigest(cache, hacheo, ops)
  16. x.saca.sinc = (cache, clave, ops) => get.sync(cache, clave, ops)
  17. x.saca.sinc.porHacheo = (cache, hacheo, ops) => get.sync.byDigest(cache, hacheo, ops)
  18. x.saca.flujo = (cache, clave, ops) => get.stream(cache, clave, ops)
  19. x.saca.flujo.porHacheo = (cache, hacheo, ops) => get.stream.byDigest(cache, hacheo, ops)
  20. x.sava.copia = (cache, clave, destino, opts) => get.copy(cache, clave, destino, opts)
  21. x.sava.copia.porHacheo = (cache, hacheo, destino, opts) => get.copy.byDigest(cache, hacheo, destino, opts)
  22. x.saca.info = (cache, clave) => get.info(cache, clave)
  23. x.saca.tieneDatos = (cache, hacheo) => get.hasContent(cache, hacheo)
  24. x.saca.tieneDatos.sinc = (cache, hacheo) => get.hasContent.sync(cache, hacheo)
  25. x.mete = (cache, clave, datos, ops) => put(cache, clave, datos, ops)
  26. x.mete.flujo = (cache, clave, ops) => put.stream(cache, clave, ops)
  27. x.rm = (cache, clave) => rm.entry(cache, clave)
  28. x.rm.todo = cache => rm.all(cache)
  29. x.rm.entrada = x.rm
  30. x.rm.datos = (cache, hacheo) => rm.content(cache, hacheo)
  31. x.ponLenguaje = lang => setLocale(lang)
  32. x.limpiaMemoizado = () => clearMemoized()
  33. x.tmp = {}
  34. x.tmp.mkdir = (cache, ops) => tmp.mkdir(cache, ops)
  35. x.tmp.hazdir = x.tmp.mkdir
  36. x.tmp.conTmp = (cache, ops, cb) => tmp.withTmp(cache, ops, cb)
  37. x.verifica = (cache, ops) => verify(cache, ops)
  38. x.verifica.ultimaVez = cache => verify.lastRun(cache)
  39. x.verifica.últimaVez = x.verifica.ultimaVez