Skip to content

Instantly share code, notes, and snippets.

@erwan
Last active August 29, 2015 14:07
Show Gist options
  • Select an option

  • Save erwan/a6b898cc3af15d7def0a to your computer and use it in GitHub Desktop.

Select an option

Save erwan/a6b898cc3af15d7def0a to your computer and use it in GitHub Desktop.

Revisions

  1. erwan revised this gist Oct 29, 2014. No changes.
  2. erwan revised this gist Oct 20, 2014. No changes.
  3. erwan revised this gist Oct 20, 2014. No changes.
  4. erwan revised this gist Oct 20, 2014. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion prismic-cache.rb
    Original file line number Diff line number Diff line change
    @@ -1 +1,5 @@
    t
    # 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
  5. erwan created this gist Oct 20, 2014.
    1 change: 1 addition & 0 deletions prismic-cache.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    t