{"id":18744834,"url":"https://github.com/evokelektrique/kubo","last_synced_at":"2025-11-22T18:30:15.795Z","repository":{"id":56880552,"uuid":"423003168","full_name":"evokelektrique/kubo","owner":"evokelektrique","description":"File cache in Ruby","archived":false,"fork":false,"pushed_at":"2021-11-02T15:23:45.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-25T17:43:25.388Z","etag":null,"topics":["file-cache","ruby","ruby-gem"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evokelektrique.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-30T22:25:41.000Z","updated_at":"2021-11-02T15:40:23.000Z","dependencies_parsed_at":"2022-08-20T23:40:18.574Z","dependency_job_id":null,"html_url":"https://github.com/evokelektrique/kubo","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evokelektrique%2Fkubo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evokelektrique%2Fkubo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evokelektrique%2Fkubo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evokelektrique%2Fkubo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evokelektrique","download_url":"https://codeload.github.com/evokelektrique/kubo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239627252,"owners_count":19670844,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["file-cache","ruby","ruby-gem"],"created_at":"2024-11-07T16:16:02.757Z","updated_at":"2025-11-22T18:30:15.736Z","avatar_url":"https://github.com/evokelektrique.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kubo\nKubo is a Ruby gem to file cache easily.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'kubo'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install kubo\n\n## Usage\n```ruby\n# Initializing a Zip instance to compress data to GZip and the Zip class\n# takes two arguments for expiration and a path for storing keys.\n# Kubo::Zip.new(time, path)\n# `time` argument could be \"1s\", \"1h\", \"1d\" which it will be converted to seconds later.\nkubo = Kubo::Zip.new(\"1h\", \"./cache/my_cache_folder\")\n\n# Save a key with value\nkey = \"my_key\"\nvalue = \"My value\"\nkubo.save(key, value)\n\n# Read a key\nkubo.read(key) # =\u003e \"My value\"\n\n# Check expiration of a key\nkubo.expired?(key)\n\n# Flush / Truncate a key\nkubo.flush(key)\n\n# Delete a key\nkubo.delete(key)\nkubo.delete_if_expired(key) # Deletes the key if it's expired.\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`.\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/evokelektrique/kubo.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevokelektrique%2Fkubo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevokelektrique%2Fkubo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevokelektrique%2Fkubo/lists"}