Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 700 Bytes

README.md

File metadata and controls

40 lines (27 loc) · 700 Bytes

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.