<commit_before>tmp_cache
=========
on memory cache.

* https://github.com/shokai/tmp_cache

![Travis-CI build status](https://travis-ci.org/shokai/tmp_cache.png)


Installation
------------

    % gem install tmp_cache


Usage
-----

```ruby
require 'tmp_cache'

TmpCache.set('name', 'shokai', 60) # expire 60 sec

puts TmpCache.get('name') # => 'shokai'
sleep 61
puts TmpCache.get('name') # => nil

TmpCache.set('name', 'shokai')
TmpCache.set('mail', '<EMAIL>')<commit_msg>add Travis-CI link to badge  #3<commit_after>tmp_cache
=========
on memory cache.

* https://github.com/shokai/tmp_cache

[![Travis-CI build status](https://travis-ci.org/shokai/tmp_cache.png)](https://travis-ci.org/shokai/tmp_cache)


Installation
------------

    % gem install tmp_cache


Usage
-----

```ruby
require 'tmp_cache'

TmpCache.set('name', 'shokai', 60) # expire 60 sec

puts TmpCache.get('name') # => 'shokai'
sleep 61
puts TmpCache.get('name') # => nil

TmpCache.set('name', 'shokai')
TmpCache.set('mail', '<EMAIL>')
{'fraction_non_alphanumeric': 0.21726190476190477, 'fraction_numerical': 0.012896825396825396, 'mean_word_length': 3.995049504950495, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 5, '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': '2289843', 'n_tokens_mistral': 415, 'n_tokens_neox': 390, 'n_words': 72}