[4.2] fix bug 'cache paginated query with key'

[4.2] fix bug 'cache paginated query with key' change for tests

[4.2] fix bug 'cache paginated query with key' reformat code

[4.2] fix bug 'cache paginated query with key' fix docBlock