{"id":20550239,"url":"https://github.com/dnmfarrell/cache-reddit","last_synced_at":"2026-04-22T10:06:02.437Z","repository":{"id":31369340,"uuid":"34932325","full_name":"dnmfarrell/Cache-Reddit","owner":"dnmfarrell","description":null,"archived":false,"fork":false,"pushed_at":"2015-10-07T20:34:18.000Z","size":102,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-16T16:49:26.004Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/dnmfarrell.png","metadata":{"files":{"readme":"README.pod","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-02T02:01:50.000Z","updated_at":"2022-02-11T17:58:12.000Z","dependencies_parsed_at":"2022-09-13T08:42:13.753Z","dependency_job_id":null,"html_url":"https://github.com/dnmfarrell/Cache-Reddit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnmfarrell%2FCache-Reddit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnmfarrell%2FCache-Reddit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnmfarrell%2FCache-Reddit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnmfarrell%2FCache-Reddit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dnmfarrell","download_url":"https://codeload.github.com/dnmfarrell/Cache-Reddit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242157180,"owners_count":20081036,"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-16T02:24:04.587Z","updated_at":"2026-04-22T10:06:02.430Z","avatar_url":"https://github.com/dnmfarrell.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"=pod\n\n=encoding UTF-8\n\n=head1 NAME\n\nCache::Reddit - a caching API that uses Reddit as the backend\n\n=head1 VERSION\n\nversion 0.04\n\n=head1 SYNOPSIS\n\n  use Cache::Reddit;\n\n  my $id = set($data_ref);  # serialize data and post to subreddit\n  my $data = get($id);      # retrieve the data back\n  remove($id);              # delete the data from Reddit\n\n=head1 DESCRIPTION\n\nCache::Reddit is a module for cacheing your application data on Reddit.\nData is serialized using L\u003cStorable\u003e and posted to a subreddit. The data\nis posted as a text post, and the title of the post set to Cache::Reddit::\n+ a random number.\n\nThe text is bleached before posting (converted to binary, C\u003ctr/01/ \\t/g\u003e)\nso it appears as whitespace on Reddit.\n\nDue to the list-like search function, data retrieval performs at 0(n). However\ndeletion and insertion performs at 0(1).\n\nIt requires three environment variables to be set:\n\n=over 4\n\n=item * reddit_username - the reddit username to login with\n\n=item * reddit_password - the reddit password to login with\n\n=item * reddit_subreddit - the target subreddit to post data to\n\n=back\n\n=head1 EXPORTED FUNCTIONS\n\n=head2 set($dataref)\n\nSerializes and saves the data in the subreddit as a text post.\nReturns the key for cached entry;\n\n=head2 get ($key)\n\nDeserializes and returns the cached entry.\n\n=head2 remove ($key)\n\nDeletes the item from the subreddit.\n\n=head1 AUTHOR\n\nDavid Farrell \u003cdfarrell@cpan.org\u003e\n\n=head1 COPYRIGHT AND LICENSE\n\nThis software is Copyright (c) 2015 by David Farrell.\n\nThis is free software, licensed under:\n\n  The (two-clause) FreeBSD License\n\n=cut\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnmfarrell%2Fcache-reddit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdnmfarrell%2Fcache-reddit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnmfarrell%2Fcache-reddit/lists"}