def __init__(self, leaderboard_name, **options):
self.leaderboard_name = leaderboard_name<EOL>self.options = options<EOL>self.page_size = self.options.pop('<STR_LIT>', self.DEFAULT_PAGE_SIZE)<EOL>if self.page_size < <NUM_LIT:1>:<EOL><INDENT>self.page_size = self.DEFAULT_PAGE_SIZE<EOL><DEDENT>self.member_data_namespace = self.options.pop(<EOL>'<STR_LIT>',<EOL>self.DEFAULT_MEMBER_DATA_NAMESPACE)<EOL>self.global_member_data = self.options.pop(<EOL>'<STR_LIT>',<EOL>self.DEFAULT_GLOBAL_MEMBER_DATA)<EOL>self.order = self.options.pop('<STR_LIT>', self.DESC).lower()<EOL>if not self.order in [self.ASC, self.DESC]:<EOL><INDENT>raise ValueError(<EOL>"<STR_LIT>" % (self.order, "<STR_LIT:U+002C>".join([self.ASC, self.DESC])))<EOL><DEDENT>redis_connection = self.options.pop('<STR_LIT>', None)<EOL>if redis_connection:<EOL><INDENT>self.redis_connection = redis_connection<EOL><DEDENT>else:<EOL><INDENT>connection = self.options.pop('<STR_LIT>', None)<EOL>if isinstance(connection, (StrictRedis, Redis)):<EOL><INDENT>self.options['<STR_LIT>'] = connection.connection_pool<EOL><DEDENT>if '<STR_LIT>' not in self.options:<EOL><INDENT>self.options['<STR_LIT>'] = self.pool(<EOL>self.options.pop('<STR_LIT:host>', self.DEFAULT_REDIS_HOST),<EOL>self.options.pop('<STR_LIT:port>', self.DEFAULT_REDIS_PORT),<EOL>self.options.pop('<STR_LIT>', self.DEFAULT_REDIS_DB),<EOL>self.options.pop('<STR_LIT>', self.DEFAULT_POOLS),<EOL>**self.options<EOL>)<EOL><DEDENT>self.redis_connection = Redis(**self.options)<EOL><DEDENT>
Initialize a connection to a specific leaderboard. By default, will use a
redis connection pool for any unique host:port:db pairing.

The options and their default values (if any) are:

host : the host to connect to if creating a new handle ('localhost')
port : the port to connect to if creating a new handle (6379)
db : the redis database to connect to if creating a new handle (0)
page_size : the default number of items to return in each page (25)
connection : an existing redis handle if re-using for this leaderboard
connection_pool : redis connection pool to use if creating a new handle