func isCacheable(q *Query) bool {
	if q.Method() == MethodResolve && q.Params() != nil {
		paramsMap := q.Params().(map[string]interface{})
		if urls, ok := paramsMap[paramUrls].([]interface{}); ok {
			if len(urls) > cacheResolveLongerThan {
				return true
			}
		}
	} else if q.Method() == MethodClaimSearch {
		return true
	}
	return false
}
// isCacheable returns true if this query can be cached
isCacheable returns true if this query can be cached
// isCacheable returns true if this query can be cached
func isCacheable(q *Query) bool {
	if q.Method() == MethodResolve && q.Params() != nil {
		paramsMap := q.Params().(map[string]interface{})
		if urls, ok := paramsMap[paramUrls].([]interface{}); ok {
			if len(urls) > cacheResolveLongerThan {
				return true
			}
		}
	} else if q.Method() == MethodClaimSearch {
		return true
	}
	return false
}
func isCacheable ( q * Query ) bool { if q . Method ( ) == MethodResolve && q . Params ( ) != nil { paramsMap := q . Params ( ) . ( map [ string ] interface { } ) if urls , ok := paramsMap [ paramUrls ] . ( [ ] interface { } ) ; ok { if len ( urls ) > cacheResolveLongerThan { return true } } } else if q . Method ( ) == MethodClaimSearch { return true } return false }
isCacheable returns true if this query can be cached
isCacheable returns true if this query can be cached