pub struct SqsOverflow {
pub store: Option<String>,
pub always: bool,
}Expand description
The cache store where an SQS connection keeps payloads that are too large for an SQS message.
An SQS message holds at most 1 MiB. A larger payload goes into the cache, and the message
carries the payload’s cache key instead. The worker reads the payload back from the cache, and
removes it when the job is finished. Use a store that every process shares, such as database
or redis. The cache keeps a payload for 14 days after dispatch, so a job that hasn’t finished
by then fails for good.
use laravel::config::queue::{SqsOverflow, SqsQueue};
let queue = SqsQueue::new()
.queue("exports")
.overflow(SqsOverflow::new().store("redis"));Fields§
§store: Option<String>The cache store, or None for the default store.
always: boolWhether every payload goes into the cache, not only the payloads too large for SQS.
Implementations§
Source§impl SqsOverflow
impl SqsOverflow
Sourcepub fn new() -> SqsOverflow
pub fn new() -> SqsOverflow
Returns an overflow that keeps payloads too large for SQS in the default cache store.
Sourcepub fn store(self, store: impl Into<String>) -> SqsOverflow
pub fn store(self, store: impl Into<String>) -> SqsOverflow
Sets the cache store.
Sourcepub const fn always(self) -> SqsOverflow
pub const fn always(self) -> SqsOverflow
Keeps every payload in the cache, not only the payloads too large for SQS.
Trait Implementations§
Source§impl Clone for SqsOverflow
impl Clone for SqsOverflow
Source§fn clone(&self) -> SqsOverflow
fn clone(&self) -> SqsOverflow
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SqsOverflow
impl Debug for SqsOverflow
Source§impl Default for SqsOverflow
impl Default for SqsOverflow
Source§fn default() -> SqsOverflow
fn default() -> SqsOverflow
impl Eq for SqsOverflow
Source§impl PartialEq for SqsOverflow
impl PartialEq for SqsOverflow
impl StructuralPartialEq for SqsOverflow
Auto Trait Implementations§
impl Forget for SqsOverflow
impl Freeze for SqsOverflow
impl Move for SqsOverflow
impl RefUnwindSafe for SqsOverflow
impl Send for SqsOverflowwhere
RawVecInner: Send,
impl Sync for SqsOverflowwhere
RawVecInner: Sync,
impl Unpin for SqsOverflow
impl UnsafeUnpin for SqsOverflow
impl UnwindSafe for SqsOverflowwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<K> ForeignKey<K> for K
impl<K> ForeignKey<K> for K
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more