RDF::T...:Redis(3pm)
π RDF::T...:Redis(3pm) π
okay bestie, so this is the manpage for RDF::Trine::Store::Redis β a whole RDF store backend that talks to Redis. yes it's filed under 3pm (perl module docs, iykyk), and no we're not gonna be boring about it. let's go π¦
β¨ NAME β¨
RDF::Trine::Store::Redis β an RDF Store for Redis. that's it, that's the whole name, she's simple and she slays π
πΈ VERSION πΈ
this doc describes RDF::Trine::Store::Redis version 1.019. periodt.
π SYNOPSIS π
the whole vibe in one line:
use RDF::Trine::Store::Redis;
literally that's it, that's how you summon her π«Ά
π DESCRIPTION π
RDF::Trine::Store::Redis hands you a whole RDF::Trine::Store API so you can go interact with a Redis server. RDF data? Redis? besties now. no cap. β¨
π§ METHODS π§
ok so beyond the methods we're listing below, this class also inherits methods from the RDF::Trine::Store class. so there's lore you get for free π
new ( $server )β returns a new storage object. fresh out the box, new storage object, no notes πnew_with_config ( $hashref )β returns a new storage object configured with a hashref with certain keys as arguments.- the
"storetype"key must be"Redis"for this backend. non-negotiable, that's the vibe check β - the following key must also be used:
foo description
- the
connβ returns the Redis connection object. that's your link to the server, your little red string of fate π§΅cacheβ returns theCache::LRUobject used to cache frequently used redis data. she remembers things so you don't have to πnew_with_config ( \%config )β returns a newRDF::Trine::Storeobject based on the supplied configuration hashref.add_statement ( $statement [, $context] )β adds the specified$statementto the underlying model. she's in πremove_statement ( $statement [, $context])β removes the specified$statementfrom the underlying model. she's out πremove_statements ( $subject, $predicate, $object [, $context])β removes the specified$statementfrom the underlying model.get_statements ($subject, $predicate, $object [, $context] )β returns a stream object of all statements matching the specified subject, predicate and objects. any of the arguments may beundefto match any value. undef = wildcard = she accepts everyone πcount_statements ( $subject, $predicate, $object, $context )β returns a count of all the statements matching the specified subject, predicate, object, and context. any of the arguments may beundefto match any value. math but make it cute π’get_contextsβ returns anRDF::Trine::Iteratorover theRDF::Trine::Nodeobjects comprising the set of contexts of the stored quads. quads!! plural!! we love a quad moment πsupports ( [ $feature ] )β if$featureis specified, returns true if the feature is supported by the store, false otherwise. if$featureis not specified, returns a list of supported features. so like, ask about one thing or ask for the whole menu πnukeβ permanently removes the store and its data.
β οΈ bestie. hear me. nuke permanently removes the store AND its data. there is no undo, no take-backs, no "wait I didn't mean it". this is the delete-everything button and it does not care about your feelings. π
π₯ REDIS DATA LAYOUT π₯
...
(yeah the original just leaves it as ... β we're keeping it exactly that, the mystery is part of the charm β¨)
π¦ BUGS π¦
please report any bugs or feature requests to through the GitHub web interface at <https://github.com/kasei/perlrdf/issues>. found a bug? tell the internet, not me, i'm just the messenger π
π AUTHOR π
Gregory Todd Williams "<gwilliams@cpan.org>" β king behavior, honestly π
πΈ COPYRIGHT πΈ
Copyright (c) 2006-2012 Gregory Todd Williams. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
ok that's the whole page, you're officially educated π β¨
sign-off: this was perl v5.38.2, dated 2024-01-13, and filed under RDF::T...:Redis(3pm) π byeeee ππ«Ά
π¦ where this page comes from
- debian trixie: librdf-trine-perl 1.019-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: librdf-trine-perl 1.019-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: librdf-trine-perl 1.019-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: librdf-trine-perl 1.019-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms