use grobal value and use redis