Visit loops each of the entries and calls the callback function func(key, value).
(cb func(k string, v interface{}))
| 510 | |
| 511 | // Visit loops each of the entries and calls the callback function func(key, value). |
| 512 | func (s *Session) Visit(cb func(k string, v interface{})) { |
| 513 | s.provider.db.Visit(s.sid, cb) |
| 514 | } |
| 515 | |
| 516 | // Len returns the total number of stored values in this session. |
| 517 | func (s *Session) Len() int { |