{"id":20704154,"url":"https://github.com/solidsnack/lark","last_synced_at":"2025-06-26T17:32:46.013Z","repository":{"id":66073475,"uuid":"1083319","full_name":"solidsnack/lark","owner":"solidsnack","description":"Gem for managing distributed state in a redis cluster","archived":false,"fork":false,"pushed_at":"2010-11-15T23:41:14.000Z","size":103,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-24T05:17:20.531Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":false,"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/solidsnack.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"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":"2010-11-15T22:08:01.000Z","updated_at":"2014-12-22T23:54:46.000Z","dependencies_parsed_at":"2023-02-19T22:05:14.540Z","dependency_job_id":null,"html_url":"https://github.com/solidsnack/lark","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/solidsnack/lark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidsnack%2Flark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidsnack%2Flark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidsnack%2Flark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidsnack%2Flark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/solidsnack","download_url":"https://codeload.github.com/solidsnack/lark/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidsnack%2Flark/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262113565,"owners_count":23261053,"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-11-17T01:11:14.099Z","updated_at":"2025-06-26T17:32:45.991Z","avatar_url":"https://github.com/solidsnack.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lark\n\nLark is a simple system to store local cache in a cluster of redis servers, be\nable to query state about other lark nodes, and notice when one goes offline.\n\n    Lark.on_expired do |id|\n      Log.debug \"Lost node #{id}\"\n    end\n\n    Lark.configure :domain =\u003e \"staging\", :expire =\u003e 60\n\n    EM.run do\n      lark = Lark::Base.new \"bottom_node.1\", \"group3\", \"ip\" =\u003e \"127.0.0.1\", \"role\" =\u003e \"worker node\"\n\n      EM::PeriodicTimer.new(5) do\n        lark.set \"load\" =\u003e get_load, \"mem_usage\" =\u003e get_mem_usage\n      end\n\n      on_some_event do\n        Lark.get(:group3).each do |n|\n          check_on_node(n)\n        end\n      end\n    end\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolidsnack%2Flark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolidsnack%2Flark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolidsnack%2Flark/lists"}