Skip to content

Commit 1aab280

Browse files
committed
push database file
1 parent 29ed71f commit 1aab280

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func OpenByConfig(c Config) (*sql.DB, error) {
3838
}
3939
}
4040
type TxCache interface {
41-
Put(key string, obj interface{}, timeToLive time.Duration) error
41+
Put(key string, value *sql.Tx, timeToLive time.Duration) error
4242
Expire(key string, timeToLive time.Duration) (bool, error)
4343
Get(key string) (*sql.Tx, error)
4444
Remove(key string) (bool, error)

0 commit comments

Comments
 (0)