Skip to content

vranystepan/session-redis-migration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP session migration helper

Migration helper can help you with the migration of PHP session files to the Redis database. TTL helper configures TTL of already existing keys.

Usage

  1. clone this repository

  2. build the binary

    go build cmd/migration/main.go

    or

    go build cmd/ttl/main.go
  3. get the help

    ./main -h
  4. migrate the sessions

    go run cmd/migration/main.go -files '/tmp/bla/sess_*'

    or set the TTL

    go run cmd/migration/main.go -ttl 336h -keys 'PHP*'

    please note the apostrophes in the -files or -keys flags. This is to prevent globbing.

About

Simple toolkit for the migration of session files to Redis

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages