Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Mar 8, 2020
1 parent 3bd27dc commit 3ca22d1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import (
"github.com/clevergo/captchas/memstore"
//"github.com/clevergo/captchas/redisstore"
//"github.com/go-redis/redis/v7"
//"github.com/bradfitz/gomemcache/memcache"
//"github.com/clevergo/captchas/memcachedstore"
)

var (
Expand Down Expand Up @@ -44,6 +46,12 @@ func main() {
store = redisstore.New(client, 10*time.Minute)
*/

// memcached store
/*
memcachedClient := memcache.New("localhost:11211")
store = memcachedstore.New(memcachedClient)
*/

managerOpts := []captchas.Option{
// disable case sensitive, enabled by default, it will effects on string driver.
captchas.CaseSensitive(false),
Expand Down

0 comments on commit 3ca22d1

Please sign in to comment.