dragon.data.sources.impl.redis

Documentation forthcoming

add-connection

(add-connection this)

Documentation forthcoming

cmd

(cmd this args)

With this function we can query Redis like the following:

=> (cmd querier [:ping])
=> (cmd querier [:get "testkey"])
=> (cmd querier [:set "foo" "bar"])

(Note that the escaped strings are for the docstring, and not what you’d actually type.)

connection-behaviour

Documentation forthcoming

get-all*

(get-all* this schema-key)(get-all* this schema-key opts)

Documentation forthcoming

get-all-authors

(get-all-authors this)

Documentation forthcoming

get-all-categories

(get-all-categories this)

Documentation forthcoming

get-all-checksums

(get-all-checksums this)

Documentation forthcoming

get-all-data

(get-all-data this src-file)

Documentation forthcoming

get-all-metadata

(get-all-metadata this)

Documentation forthcoming

get-all-posts

(get-all-posts this)

Documentation forthcoming

get-all-stats

(get-all-stats this)

Documentation forthcoming

get-all-tags

(get-all-tags this)

Documentation forthcoming

get-category-freqs

(get-category-freqs this)

Documentation forthcoming

get-category-max-count

(get-category-max-count this)

Documentation forthcoming

get-category-stats

(get-category-stats this)

Documentation forthcoming

get-category-totals

(get-category-totals this)

Documentation forthcoming

get-first-n-keys

(get-first-n-keys this nth)(get-first-n-keys this offset count)

Documentation forthcoming

get-keys

(get-keys this)

Documentation forthcoming

get-last-n-keys

(get-last-n-keys this nth)(get-last-n-keys this offset count)

Documentation forthcoming

get-n-keys

(get-n-keys this nth order)(get-n-keys this offset count order)

Documentation forthcoming

get-post-category

(get-post-category this src-file)

Documentation forthcoming

get-post-checksum

(get-post-checksum this src-file)

Documentation forthcoming

get-post-content

(get-post-content this src-file)

Documentation forthcoming

get-post-content-source

(get-post-content-source this src-file)

Documentation forthcoming

get-post-dates

(get-post-dates this src-file)

Documentation forthcoming

get-post-excerpts

(get-post-excerpts this src-file)

Documentation forthcoming

get-post-metadata

(get-post-metadata this src-file)

Documentation forthcoming

get-post-stats

(get-post-stats this src-file)

Documentation forthcoming

get-post-tags

(get-post-tags this src-file)

Documentation forthcoming

get-post-uri-path

(get-post-uri-path this src-file)

Documentation forthcoming

get-query

(get-query schema-key & [src-file])

Documentation forthcoming

get-raw

(get-raw this redis-key)

Documentation forthcoming

get-tag-freqs

(get-tag-freqs this)

Documentation forthcoming

get-tag-max-count

(get-tag-max-count this)

Documentation forthcoming

get-tag-stats

(get-tag-stats this)

Documentation forthcoming

get-tag-totals

(get-tag-totals this)

Documentation forthcoming

get-text-stats

(get-text-stats this)

Documentation forthcoming

get-total-char-count

(get-total-char-count this)

Documentation forthcoming

get-total-line-count

(get-total-line-count this)

Documentation forthcoming

get-total-word-count

(get-total-word-count this)

Documentation forthcoming

key->path-segment

(key->path-segment schema-key)

Documentation forthcoming

new-connector

(new-connector component)

Documentation forthcoming

new-querier

(new-querier component conn)

Documentation forthcoming

pipeline

(pipeline this lines)

Make one or more calls to the Redis server using the pipeline mechanism:

=> (pipeline querier [[:get "foo"]
                      [:get "bar"]
                      [:get "baz"]
                      [:get "quux"]])

post-changed?

(post-changed? this src-file checksum)

Documentation forthcoming

query-behaviour

Documentation forthcoming

schema

(schema)(schema path-segment)

This function retuns the Redis ‘schemas’ (for lack of a better word) for a given path-segment (blog post key). If a key is not passed, the implication is that blog-wide, non-post-specific data is being referenced.

set-all-checksums

(set-all-checksums this checksum)

Documentation forthcoming

set-all-data

(set-all-data this src-file {:keys [category checksum content content-source dates excerpts metadata stats tags uri-path]})

Documentation forthcoming

set-category-stats

(set-category-stats this stats)

Documentation forthcoming

set-keys

(set-keys this src-files)

Documentation forthcoming

set-post-category

(set-post-category this src-file category)

Documentation forthcoming

set-post-checksum

(set-post-checksum this src-file checksum)

Documentation forthcoming

set-post-content

(set-post-content this src-file content)

Documentation forthcoming

set-post-content-source

(set-post-content-source this src-file source)

Documentation forthcoming

set-post-dates

(set-post-dates this src-file dates)

Documentation forthcoming

set-post-excerpts

(set-post-excerpts this src-file excerpts)

Documentation forthcoming

set-post-metadata

(set-post-metadata this src-file metadata)

Documentation forthcoming

set-post-stats

(set-post-stats this src-file stats)

Documentation forthcoming

set-post-tags

(set-post-tags this src-file tags)

Documentation forthcoming

set-post-uri-path

(set-post-uri-path this src-file uri-path)

Documentation forthcoming

set-query

(set-query schema-key & args)

Documentation forthcoming

set-tag-stats

(set-tag-stats this stats)

Documentation forthcoming

set-text-stats

(set-text-stats this stats)

Documentation forthcoming

setup-schema

(setup-schema this)

Documentation forthcoming

setup-subscribers

(setup-subscribers this)

Documentation forthcoming