<commit_before>
var assert = require('assert')
var fs = require('fs')

var Cache = require('..')

var cache = new Cache({
  interval: 1
})

it('.set() a value', function () {
  return cache.set('a', 'asdf')
})

it('.get() the same value', function () {
  return cache.get('a').then(function (value) {
    assert.equal('asdf', value.toString())
  })
})

it('.access() should be true if it exists', function () {
  return cache.access('a').then(function (value) {
    assert(value)
  })
})

it('.access() should be false if it does not exist', function () {
  return cache.access('asdf').then(function (value) {<commit_msg>bump interval for 0.10<commit_after>
var assert = require('assert')
var fs = require('fs')

var Cache = require('..')

var cache = new Cache({
  interval: 10
})

it('.set() a value', function () {
  return cache.set('a', 'asdf')
})

it('.get() the same value', function () {
  return cache.get('a').then(function (value) {
    assert.equal('asdf', value.toString())
  })
})

it('.access() should be true if it exists', function () {
  return cache.access('a').then(function (value) {
    assert(value)
  })
})

it('.access() should be false if it does not exist', function () {
  return cache.access('asdf').then(function (value) {
{'fraction_non_alphanumeric': 0.20047923322683706, 'fraction_numerical': 0.004792332268370607, 'mean_word_length': 4.0728744939271255, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4636815', 'n_tokens_mistral': 412, 'n_tokens_neox': 406, 'n_words': 119}