GetInt64Default same as `Get` but returns its int64 representation, if key doesn't exist it returns the "defaultValue".
(key string, defaultValue int64)
| 309 | // GetInt64Default same as `Get` but returns its int64 representation, |
| 310 | // if key doesn't exist it returns the "defaultValue". |
| 311 | func (s *Session) GetInt64Default(key string, defaultValue int64) int64 { |
| 312 | if v, err := s.GetInt64(key); err == nil { |
| 313 | return v |
| 314 | } |
| 315 | |
| 316 | return defaultValue |
| 317 | } |
| 318 | |
| 319 | // GetUint64 same as `Get` but returns as uint64, |
| 320 | // if key doesn't exist then it returns 0 and a non-nil error. |
no test coverage detected