2
0

database.go 149 B

123456789101112131415
  1. package db
  2. import (
  3. "time"
  4. )
  5. const (
  6. cacheTimeout = time.Hour
  7. cacheCapacity = 4096
  8. )
  9. type Database interface {
  10. Ping() error
  11. Close() error
  12. }