Skip to content

Instantly share code, notes, and snippets.

@prismicdeveloper
Created March 31, 2015 09:44
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 prismicdeveloper/388900d4e9e7a444e0a2 to your computer and use it in GitHub Desktop.
Save prismicdeveloper/388900d4e9e7a444e0a2 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.cdn.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