{"id":18981397,"url":"https://github.com/awncorp/zing-store-rocks","last_synced_at":"2025-11-11T13:03:20.477Z","repository":{"id":55497978,"uuid":"324601017","full_name":"awncorp/zing-store-rocks","owner":"awncorp","description":"RocksDB Storage for Zing Abstractions","archived":false,"fork":false,"pushed_at":"2020-12-26T19:36:30.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-01T11:27:29.871Z","etag":null,"topics":["perl","perl5","rocksdb"],"latest_commit_sha":null,"homepage":"https://metacpan.org/release/Zing-Store-Rocks","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/awncorp.png","metadata":{"files":{"readme":"README","changelog":"CHANGES","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-26T17:14:23.000Z","updated_at":"2022-07-24T21:03:32.000Z","dependencies_parsed_at":"2022-08-15T01:50:26.996Z","dependency_job_id":null,"html_url":"https://github.com/awncorp/zing-store-rocks","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awncorp%2Fzing-store-rocks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awncorp%2Fzing-store-rocks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awncorp%2Fzing-store-rocks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awncorp%2Fzing-store-rocks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/awncorp","download_url":"https://codeload.github.com/awncorp/zing-store-rocks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239985741,"owners_count":19729517,"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":["perl","perl5","rocksdb"],"created_at":"2024-11-08T16:09:44.224Z","updated_at":"2025-11-11T13:03:20.410Z","avatar_url":"https://github.com/awncorp.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"NAME\n\n    Zing::Store::Rocks - RocksDB Storage\n\nABSTRACT\n\n    RocksDB Storage Abstraction\n\nSYNOPSIS\n\n      use File::Spec;\n      use Zing::Encoder::Dump;\n      use Zing::Store::Rocks;\n    \n      my $store = Zing::Store::Rocks-\u003enew(\n        root =\u003e File::Spec-\u003ecatfile(\n          File::Spec-\u003etmpdir, rand\n        ),\n      );\n    \n      # $store-\u003edrop;\n\nDESCRIPTION\n\n    This package provides a RockDB-specific storage adapter for use with\n    data persistence abstractions. The \"client\" attribute accepts a RocksDB\n    object.\n\nINHERITS\n\n    This package inherits behaviors from:\n\n    Zing::Store\n\nLIBRARIES\n\n    This package uses type constraints from:\n\n    Zing::Types\n\nATTRIBUTES\n\n    This package has the following attributes:\n\n client\n\n      client(InstanceOf[\"RocksDB\"])\n\n    This attribute is read-only, accepts (InstanceOf[\"RocksDB\"]) values,\n    and is optional.\n\n root\n\n      root(Str)\n\n    This attribute is read-only, accepts (Str) values, and is optional.\n\nMETHODS\n\n    This package implements the following methods:\n\n decode\n\n      decode(Str $data) : HashRef\n\n    The decode method decodes the data provided and returns the data as a\n    hashref.\n\n    decode example #1\n\n        # given: synopsis\n      \n        $store-\u003edecode('{\"status\"=\u003e\"ok\"}');\n\n drop\n\n      drop(Str $key) : Int\n\n    The drop method removes (drops) the item from the datastore.\n\n    drop example #1\n\n        # given: synopsis\n      \n        $store-\u003edrop('zing:main:global:model:temp');\n\n encode\n\n      encode(HashRef $data) : Str\n\n    The encode method encodes and returns the data provided.\n\n    encode example #1\n\n        # given: synopsis\n      \n        $store-\u003eencode({ status =\u003e 'ok' });\n\n keys\n\n      keys(Str @keys) : ArrayRef[Str]\n\n    The keys method returns a list of keys under the namespace of the\n    datastore or provided key.\n\n    keys example #1\n\n        # given: synopsis\n      \n        my $keys = $store-\u003ekeys('zing:main:global:model:temp');\n\n    keys example #2\n\n        # given: synopsis\n      \n        $store-\u003esend('zing:main:global:model:temp', { status =\u003e 'ok' });\n      \n        my $keys = $store-\u003ekeys('zing:main:global:model:temp');\n\n lpull\n\n      lpull(Str $key) : Maybe[HashRef]\n\n    The lpull method pops data off of the top of a list in the datastore.\n\n    lpull example #1\n\n        # given: synopsis\n      \n        $store-\u003elpull('zing:main:global:model:items');\n\n    lpull example #2\n\n        # given: synopsis\n      \n        $store-\u003erpush('zing:main:global:model:items', { status =\u003e 'ok' });\n      \n        $store-\u003elpull('zing:main:global:model:items');\n\n lpush\n\n      lpush(Str $key, HashRef $val) : Int\n\n    The lpush method pushed data onto the top of a list in the datastore.\n\n    lpush example #1\n\n        # given: synopsis\n      \n        $store-\u003elpush('zing:main:global:model:items', { status =\u003e '1' });\n\n    lpush example #2\n\n        # given: synopsis\n      \n        $store-\u003elpush('zing:main:global:model:items', { status =\u003e '0' });\n      \n        $store-\u003elpush('zing:main:global:model:items', { status =\u003e '0' });\n\n recv\n\n      recv(Str $key) : Maybe[HashRef]\n\n    The recv method fetches and returns data from the datastore by its key.\n\n    recv example #1\n\n        # given: synopsis\n      \n        $store-\u003erecv('zing:main:global:model:temp');\n\n    recv example #2\n\n        # given: synopsis\n      \n        $store-\u003esend('zing:main:global:model:temp', { status =\u003e 'ok' });\n      \n        $store-\u003erecv('zing:main:global:model:temp');\n\n rpull\n\n      rpull(Str $key) : Maybe[HashRef]\n\n    The rpull method pops data off of the bottom of a list in the\n    datastore.\n\n    rpull example #1\n\n        # given: synopsis\n      \n        $store-\u003erpull('zing:main:global:model:items');\n\n    rpull example #2\n\n        # given: synopsis\n      \n        $store-\u003erpush('zing:main:global:model:items', { status =\u003e 1 });\n        $store-\u003erpush('zing:main:global:model:items', { status =\u003e 2 });\n      \n        $store-\u003erpull('zing:main:global:model:items');\n\n rpush\n\n      rpush(Str $key, HashRef $val) : Int\n\n    The rpush method pushed data onto the bottom of a list in the\n    datastore.\n\n    rpush example #1\n\n        # given: synopsis\n      \n        $store-\u003erpush('zing:main:global:model:items', { status =\u003e 'ok' });\n\n    rpush example #2\n\n        # given: synopsis\n      \n        $store-\u003erpush('zing:main:global:model:items', { status =\u003e 'ok' });\n      \n        $store-\u003erpush('zing:main:global:model:items', { status =\u003e 'ok' });\n\n send\n\n      send(Str $key, HashRef $val) : Str\n\n    The send method commits data to the datastore with its key and returns\n    truthy.\n\n    send example #1\n\n        # given: synopsis\n      \n        $store-\u003esend('zing:main:global:model:temp', { status =\u003e 'ok' });\n\n size\n\n      size(Str $key) : Int\n\n    The size method returns the size of a list in the datastore.\n\n    size example #1\n\n        # given: synopsis\n      \n        my $size = $store-\u003esize('zing:main:global:model:items');\n\n    size example #2\n\n        # given: synopsis\n      \n        $store-\u003erpush('zing:main:global:model:items', { status =\u003e 'ok' });\n      \n        my $size = $store-\u003esize('zing:main:global:model:items');\n\n slot\n\n      slot(Str $key, Int $pos) : Maybe[HashRef]\n\n    The slot method returns the data from a list in the datastore by its\n    index.\n\n    slot example #1\n\n        # given: synopsis\n      \n        my $model = $store-\u003eslot('zing:main:global:model:items', 0);\n\n    slot example #2\n\n        # given: synopsis\n      \n        $store-\u003erpush('zing:main:global:model:items', { status =\u003e 'ok' });\n      \n        my $model = $store-\u003eslot('zing:main:global:model:items', 0);\n\n test\n\n      test(Str $key) : Int\n\n    The test method returns truthy if the specific key (or datastore)\n    exists.\n\n    test example #1\n\n        # given: synopsis\n      \n        $store-\u003erpush('zing:main:global:model:items', { status =\u003e 'ok' });\n      \n        $store-\u003etest('zing:main:global:model:items');\n\n    test example #2\n\n        # given: synopsis\n      \n        $store-\u003edrop('zing:main:global:model:items');\n      \n        $store-\u003etest('zing:main:global:model:items');\n\nAUTHOR\n\n    Al Newkirk, awncorp@cpan.org\n\nLICENSE\n\n    Copyright (C) 2011-2019, Al Newkirk, et al.\n\n    This is free software; you can redistribute it and/or modify it under\n    the terms of the The Apache License, Version 2.0, as elucidated in the\n    \"license file\"\n    \u003chttps://github.com/iamalnewkirk/zing-store-rocks/blob/master/LICENSE\u003e.\n\nPROJECT\n\n    Wiki \u003chttps://github.com/iamalnewkirk/zing-store-rocks/wiki\u003e\n\n    Project \u003chttps://github.com/iamalnewkirk/zing-store-rocks\u003e\n\n    Initiatives \u003chttps://github.com/iamalnewkirk/zing-store-rocks/projects\u003e\n\n    Milestones\n    \u003chttps://github.com/iamalnewkirk/zing-store-rocks/milestones\u003e\n\n    Contributing\n    \u003chttps://github.com/iamalnewkirk/zing-store-rocks/blob/master/CONTRIBUTE.md\u003e\n\n    Issues \u003chttps://github.com/iamalnewkirk/zing-store-rocks/issues\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawncorp%2Fzing-store-rocks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fawncorp%2Fzing-store-rocks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawncorp%2Fzing-store-rocks/lists"}