module Tripod
This module defines behaviour for criteria
Constants
- VERSION
Public Class Methods
configure() { |self| ... }
click to toggle source
Use +configure+ to override configuration in an app, (defaults shown) Tripod.configure do |config| config.update_endpoint = 'http://127.0.0.1:3030/tripod/update' config.query_endpoint = 'http://127.0.0.1:3030/tripod/sparql' config.timeout_seconds = 30# config.response_limit_bytes = 4.megabytes # omit for no limit config.cache_store = nil #e.g Tripod::CacheStores::MemcachedCacheStore.new('localhost:11211') # note: if using memcached, make sure you set the -I (slab size) to big enough to store each result # and set the -m (total size) to something quite big (or the cache will recycle too often). # also note that the connection pool size can be passed in as an optional second parameter.
config.logger = Logger.new(STDOUT) # you can set this to the Rails.logger in a rails app.
end
# File lib/tripod.rb, line 89 def self.configure yield self end