fn expiration_unit(&self) -> Option<&'static str> {
        match self.expiration {
            ExpirationPolicy::Never => None,
            ExpirationPolicy::Seconds(_) => Some("EX"),
            ExpirationPolicy::Milliseconds(_) => Some("PX"),
            ExpirationPolicy::TimestampSeconds(_) => Some("EXAT"),
            ExpirationPolicy::TimestampMilliseconds(_) => Some("PXAT"),
            ExpirationPolicy::Keep => Some("KEEPTTL"),
        }
    }
/// Returns the expiration time unit argument
Returns the expiration time unit argument
Returns the expiration time unit argument
fn expiration_unit(&self) -> Option<&'static str> {
        match self.expiration {
            ExpirationPolicy::Never => None,
            ExpirationPolicy::Seconds(_) => Some("EX"),
            ExpirationPolicy::Milliseconds(_) => Some("PX"),
            ExpirationPolicy::TimestampSeconds(_) => Some("EXAT"),
            ExpirationPolicy::TimestampMilliseconds(_) => Some("PXAT"),
            ExpirationPolicy::Keep => Some("KEEPTTL"),
        }
    }
fn expiration_unit ( & self ) -> Option < & ' static str > { match self . expiration { ExpirationPolicy :: Never => None , ExpirationPolicy :: Seconds ( _ ) => Some ( " " ) , ExpirationPolicy :: Milliseconds ( _ ) => Some ( " " ) , ExpirationPolicy :: TimestampSeconds ( _ ) => Some ( " " ) , ExpirationPolicy :: TimestampMilliseconds ( _ ) => Some ( " " ) , ExpirationPolicy :: Keep => Some ( " " ) , } }
Returns the expiration time unit argument
Returns the expiration time unit argument
&self
&self