Skip to content

Instantly share code, notes, and snippets.

@erwan
Last active August 29, 2015 14:07
Show Gist options
  • Save erwan/a6b898cc3af15d7def0a to your computer and use it in GitHub Desktop.
Save erwan/a6b898cc3af15d7def0a 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