Module: VCAP::Services::Base::AsyncJob::Serialization
Defined Under Namespace
Classes: BaseCreateSerializedURLJob, BaseImportFromDataJob, BaseImportFromURLJob, SerializationJob
Constant Summary
collapse
- SERIALIZATION_KEY_PREFIX =
"vcap:serialization".freeze
Class Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Class Attribute Details
Returns the value of attribute redis.
18
19
20
|
# File 'lib/base/job/serialization.rb', line 18
def redis
@redis
end
|
Class Method Details
.redis_connect ⇒ Object
20
21
22
|
# File 'lib/base/job/serialization.rb', line 20
def redis_connect
@redis = ::Redis.new(Config.redis_config)
end
|
Instance Method Details
#fmt_error(e) ⇒ Object
29
30
31
|
# File 'lib/base/job/serialization.rb', line 29
def fmt_error(e)
"#{e}: [#{e.backtrace.join(" | ")}]"
end
|