It's a config file. How can you make dozens upon dozens of unique memcache, database, and defined constants DRY?
Here is how Flask can do configuration (a Python micro framework):
<code>
class Config(object):
DEBUG = False
TESTING = False
DATABASE_URI = 'sqlite://:memory:'
class ProductionConfig(Config): DATABASE_URI = 'mysql://user@localhost/foo'
class DevelopmentConfig(Config): DEBUG = True
class TestinConfig(Config): TESTING = True
</code>Still, I think config files are often best when they're verbose and as straightforward as possible. There are fewer surprises this way. If I'm working on a project by myself or with a very small team of people I trust, I'd go the inheritance route. If the team is larger, I'd go the verbose route.