Skip to content

Instantly share code, notes, and snippets.

@dohzya
Forked from erwan/prismic-cache.rb
Created November 13, 2014 04:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dohzya/826eba757a1d165bf9d3 to your computer and use it in GitHub Desktop.
Save dohzya/826eba757a1d165bf9d3 to your computer and use it in GitHub Desktop.
# You can pass any object implementing the same methods as the BasicCache
# https://github.com/prismicio/ruby-kit/blob/master/lib/prismic/cache/basic.rb
cache = Prismic::BasicCache.new
api = Prismic::api('https://lesbonneschoses.prismic.io/api', cache: cache)
# The Api will use the custom cache object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment