Per Session Rate Limiting in CE Edition not working

Hi @Pete I have used same go version to build tyk project and also the plugin. i.e
go version go1.12.17 darwin/amd64

I have few logs in the plugin as well and those are getting logged.

I have fetched value from redis as well below is the value in redis
below is the value against the key in redis get 'apikey-test1'

{\"last_check\":0,\"allowance\":0,\"rate\":0,\"per\":0,\"throttle_interval\":0,\"throttle_retry_limit\":0,\"max_query_depth\":0,\"date_created\":\"2021-10-26T13:42:05.838676+05:30\",\"expires\":0,\"quota_max\":0,\"quota_renews\":0,\"quota_remaining\":0,\"quota_renewal_rate\":0,\"access_rights\":null,\"org_id\":\"default\",\"oauth_client_id\":\"\",\"oauth_keys\":null,\"certificate\":\"\",\"basic_auth_data\":{\"password\":\"\",\"hash_type\":\"\"},\"jwt_data\":{\"secret\":\"\"},\"hmac_enabled\":false,\"enable_http_signature_validation\":false,\"hmac_string\":\"\",\"rsa_certificate_id\":\"\",\"is_inactive\":false,\"apply_policy_id\":\"test-policy\",\"apply_policies\":[\"test-policy\"],\"data_expires\":0,\"monitor\":{\"trigger_limits\":null},\"enable_detail_recording\":false,\"enable_detailed_recording\":false,\"meta_data\":{\"token\":\"test1\"},\"tags\":null,\"alias\":\"\",\"last_updated\":\"2021-10-26 13:42:05.838676 +0530 IST m=+113.498409271\",\"id_extractor_deadline\":1635235930,\"session_lifetime\":0}

surprisingly curl to keys
curl -i http://localhost:8080/tyk/keys/test1 -H 'X-Tyk-Authorization: 352d20ee67be67f6340b4c0605b044b7'

has different output that the one in redis
below is from keys curl

{"last_check":0,"allowance":0,"rate":5,"per":60,"throttle_interval":0,"throttle_retry_limit":0,"max_query_depth":0,"date_created":"2021-10-26T13:42:05.838676+05:30","expires":0,"quota_max":-1,"quota_renews":0,"quota_remaining":0,"quota_renewal_rate":3600,"access_rights":{"gop-1":{"api_name":"Tyk Test API (Plain) 2","api_id":"gop-1","versions":["Default",""],"allowed_urls":[],"restricted_types":null,"limit":{"rate":5,"per":60,"throttle_interval":0,"throttle_retry_limit":0,"max_query_depth":0,"quota_max":-1,"quota_renews":0,"quota_remaining":0,"quota_renewal_rate":3600},"field_access_rights":null,"allowance_scope":""},"pln-1":{"api_name":"","api_id":"pln-1","versions":["Default"],"allowed_urls":null,"restricted_types":null,"limit":{"rate":5,"per":60,"throttle_interval":0,"throttle_retry_limit":0,"max_query_depth":0,"quota_max":-1,"quota_renews":0,"quota_remaining":0,"quota_renewal_rate":3600},"field_access_rights":null,"allowance_scope":""}},"org_id":"default","oauth_client_id":"","oauth_keys":null,"certificate":"","basic_auth_data":{"password":"","hash_type":""},"jwt_data":{"secret":""},"hmac_enabled":false,"enable_http_signature_validation":false,"hmac_string":"","rsa_certificate_id":"","is_inactive":false,"apply_policy_id":"test-policy","apply_policies":["test-policy"],"data_expires":0,"monitor":{"trigger_limits":null},"enable_detail_recording":false,"enable_detailed_recording":false,"meta_data":{"token":"test1"},"tags":[],"alias":"","last_updated":"2021-10-26 13:42:05.838676 +0530 IST m=+113.498409271","id_extractor_deadline":1635235930,"session_lifetime":0}```