Gitly
English
Русский
Español
日本語
中文
Português
Pricing
Log in
Register
vq
/
vlib
/
v
/
tests
/
interfaces
/
redis_connection_poolable_test.v
13
lines
·
11
sloc
·
242 bytes
·
4ecf4a20779f1c32651eaa9ec196202156369353
Raw
1
import
db.redis
2
import
pool
3
4
fn
create_conn() !&pool.ConnectionPoolable {
5
mut
redis_client := redis.DB{}
6
conn := &redis_client
7
return
conn
8
}
9
10
fn
test_redis_db_implements_connection_poolable() {
11
mut
conn := create_conn()!
12
conn.reset()!
13
}
14