This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
package redistable
import "time"
type Option func(rt *RedisTable)
// UseExp 给表加过期时间,大于0才生效
func UseExp(t time.Duration) Option {
return func(rt *RedisTable) {
rt.exp = t
}