{"id":22297523,"url":"https://github.com/zhum/exedb","last_synced_at":"2025-03-25T22:43:57.356Z","repository":{"id":13595605,"uuid":"16288454","full_name":"zhum/exedb","owner":"zhum","description":"Database-like interface to executables with caching, without external databases, queues, etc.","archived":false,"fork":false,"pushed_at":"2014-02-09T14:11:28.000Z","size":192,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-30T20:15:03.950Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zhum.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-27T18:36:47.000Z","updated_at":"2014-02-09T14:11:28.000Z","dependencies_parsed_at":"2022-09-10T12:40:26.798Z","dependency_job_id":null,"html_url":"https://github.com/zhum/exedb","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhum%2Fexedb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhum%2Fexedb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhum%2Fexedb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhum%2Fexedb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhum","download_url":"https://codeload.github.com/zhum/exedb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245556960,"owners_count":20634889,"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":[],"created_at":"2024-12-03T17:50:01.358Z","updated_at":"2025-03-25T22:43:57.334Z","avatar_url":"https://github.com/zhum.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Exedb\n-----\n\nThis is simple Ruby class, which implements\ndatabase-like interface for executables.\n\nFor example:\n\n```ruby\ne=Exedb.new(\"my_long_working_exe arg1 arg2\")\ne.cache_timeout=10 # 10 seconds timeout\n\ne.get # run and return exe output\ne.get # just return exe output again!\nsleep 10\ne.get # run exe again (cache is timed out)\ne.update # run exe and update cache NOW!\n```\n\nIf another program is running another instance on the\nsame Exedb it will wait for first one finish.\n\n\nMethods and constants\n---------------------\n\n- ::new(str=nil) - create new instance, str=exec line\n- ::DEF_DIR - default dir for cache files\n- ::DEF_CACHE_TIMEOUT - default cache timeout\n\n- \\#get - get exe output\n- \\#update - run exe anyway, return output\n\nAccessors\n--------\n\n- cache_timeout\n- cache_dir\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhum%2Fexedb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhum%2Fexedb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhum%2Fexedb/lists"}