{"action":"created","issue":{"url":"https://api.github.com/repos/mrniko/redisson/issues/308","labels_url":"https://api.github.com/repos/mrniko/redisson/issues/308/labels{/name}","comments_url":"https://api.github.com/repos/mrniko/redisson/issues/308/comments","events_url":"https://api.github.com/repos/mrniko/redisson/issues/308/events","html_url":"https://github.com/mrniko/redisson/issues/308","id":119567898,"number":308,"title":"RScript.Mode.READ_ONLY... not read only?","user":{"login":"joshattr","id":15250160,"avatar_url":"https://avatars.githubusercontent.com/u/15250160?v=3","gravatar_id":"","url":"https://api.github.com/users/joshattr","html_url":"https://github.com/joshattr","followers_url":"https://api.github.com/users/joshattr/followers","following_url":"https://api.github.com/users/joshattr/following{/other_user}","gists_url":"https://api.github.com/users/joshattr/gists{/gist_id}","starred_url":"https://api.github.com/users/joshattr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshattr/subscriptions","organizations_url":"https://api.github.com/users/joshattr/orgs","repos_url":"https://api.github.com/users/joshattr/repos","events_url":"https://api.github.com/users/joshattr/events{/privacy}","received_events_url":"https://api.github.com/users/joshattr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-30T19:58:22Z","updated_at":"2015-12-01T13:54:23Z","closed_at":null,"body":"I have a script that deletes some things. Here's how I'm executing it:\r\n```java\r\nmyRScript.evalSha(Mode.READ_ONLY, mySha, ReturnType.BOOLEAN, myKeyNames);\r\n```\r\nIt's working (deleting things). This is confusing to me. Shouldn't `Mode.READ_ONLY` not allow that? I think what is happening is this is using redis' [`READONLY`](http://redis.io/commands/readonly) command, which _I think_ is okay with letting me change data, as long as I'm not hitting a slave (which I'm not, because I'm only running one node locally). I think this will cause an issue once I run this on something like [Amazon's ElastiCache](https://aws.amazon.com/elasticache/).\r\n\r\nDo you know if my assumptions about what's happening are correct? I wasn't able to figure that out. If so, maybe adding some documentation to [that enum](https://github.com/mrniko/redisson/blob/ca2ea59a9602ebdfdb5665b4fb8b86a400534078/src/main/java/org/redisson/core/RScript.java#L26) would make things less confusing. If not, maybe there's a bug? Anyway I'll start using `Mode.READ_WRITE`, but I thought it was strange that `Mode.READ_ONLY` worked too, so I figured I'd report it."},"comment":{"url":"https://api.github.com/repos/mrniko/redisson/issues/comments/160976228","html_url":"https://github.com/mrniko/redisson/issues/308#issuecomment-160976228","issue_url":"https://api.github.com/repos/mrniko/redisson/issues/308","id":160976228,"user":{"login":"joshattr","id":15250160,"avatar_url":"https://avatars.githubusercontent.com/u/15250160?v=3","gravatar_id":"","url":"https://api.github.com/users/joshattr","html_url":"https://github.com/joshattr","followers_url":"https://api.github.com/users/joshattr/followers","following_url":"https://api.github.com/users/joshattr/following{/other_user}","gists_url":"https://api.github.com/users/joshattr/gists{/gist_id}","starred_url":"https://api.github.com/users/joshattr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshattr/subscriptions","organizations_url":"https://api.github.com/users/joshattr/orgs","repos_url":"https://api.github.com/users/joshattr/repos","events_url":"https://api.github.com/users/joshattr/events{/privacy}","received_events_url":"https://api.github.com/users/joshattr/received_events","type":"User","site_admin":false},"created_at":"2015-12-01T13:54:22Z","updated_at":"2015-12-01T13:54:22Z","body":"Ahh, it's not a bug then. Could use a documentation update though (imo) :smile:. Here's my config (though I don't think it's relevant):\r\n```java\r\n@Bean\r\npublic Redisson redisson()\r\n{\r\n    Config config = new Config();\r\n\r\n    config.useSingleServer().setAddress(redisAddress);\r\n    config.setCodec(new JacksonCodecWithJava8Time());\r\n\r\n    return Redisson.create(config);\r\n}\r\n```"}}