Sha256: 2c9cb2fbf4d29cae7b0e3ed1b9efb87c95e5e84ac94f49940156d5648322afe3

Contents?: true

Size: 416 Bytes

Versions: 2

Compression:

Stored size: 416 Bytes

Contents

# bundle exec ruby examples/cache.rb

require "storyblok"
require "redis"

logger = Logger.new(STDOUT)

redis_url = "redis://localhost:6379"
Storyblok::Cache.client = Redis.new(:url => redis_url)

client = Storyblok::Client.new(
  token: "t618GfLe1YHICBioAHnMrwtt",
  api_url: "localhost:3001",
  secure: false,
  logger: logger
)

links = client.links
links = client.links
links = client.flush
links = client.links

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
storyblok-3.2.0 examples/cache.rb
storyblok-3.1.0 examples/cache.rb