RDF::T...:Redis(3pm)

πŸ“¦
version 1.019 Β· 7 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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
  • conn β€” returns the Redis connection object. that's your link to the server, your little red string of fate 🧡
  • cache β€” returns the Cache::LRU object used to cache frequently used redis data. she remembers things so you don't have to πŸ“
  • new_with_config ( \%config ) β€” returns a new RDF::Trine::Store object based on the supplied configuration hashref.
  • add_statement ( $statement [, $context] ) β€” adds the specified $statement to the underlying model. she's in πŸ’…
  • remove_statement ( $statement [, $context]) β€” removes the specified $statement from the underlying model. she's out πŸ’€
  • remove_statements ( $subject, $predicate, $object [, $context]) β€” removes the specified $statement from 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 be undef to 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 be undef to match any value. math but make it cute πŸ”’
  • get_contexts β€” returns an RDF::Trine::Iterator over the RDF::Trine::Node objects comprising the set of contexts of the stored quads. quads!! plural!! we love a quad moment πŸ‘‘
  • supports ( [ $feature ] ) β€” if $feature is specified, returns true if the feature is supported by the store, false otherwise. if $feature is 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 (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