title: pyramid beaker cache issue - TypeError: int() argument must be a string or a number, not 'NoneType'
body: <p>.ini file</p>
  
  <pre><code>cache.regions = default_term, second, short_term, long_term
  cache.type = memcached
  cache.url = 127.0.0.1:11211
  cache.second.expire = 1
  cache.short_term.expire = 60
  cache.default_term.expire = 300
  cache.long_term.expire = 3600
  </code></pre>
  
  <p><code>__init__.py</code> file</p>
  
  <pre><code>from pyramid_beaker import set_cache_regions_from_settings
  def main(global_config, **settings):
  set_cache_regions_from_settings(settings)
  ...
  </code></pre>
  
  <p>test.py file</p>
  
  <pre><code>from beaker.cache import CacheManager
  from beaker.util import parse_cache_config_options
  
  cache_opts = {
  'cache.data_dir': '/tmp/cache/data',
  'cache.lock_dir': '/tmp/cache/lock',
  'cache.regions': 'short_term, long_term',
  'cache.short_term.type': 'ext:memcached',
  'cache.short_term.url': '127.0.0.1.11211',
  'cache.short_term.expire': '3600',
  'cache.long_term.type': 'file',
  'cache.long_term.expire': '86400',
  }
  
  cache = CacheManager(**parse_cache_config_options(cache_opts))
  
  @cache.region('short_term', 'test')
  def test_method(*args, **kwargs):
  </code></pre>
  
  <p>On executing the above code it gives error:</p>
  
  <pre><code>...
  File "c:\python27\lib\site-packages\python_memcached-1.48-py2.7.egg\memcache.py", line      1058, in __init__
  self.port = int(hostData.get('port', 11211))
  TypeError: int() argument must be a string or a number, not 'NoneType'
  </code></pre>
  
  <p>Any idea what may be causing the error/ or I am missing anything ??</p>