MT#62181 RegisterCache: add get_lowest_expire

Convenience function to obtain the expire time of the soonest binding to
expire

Change-Id: I5468d62ae373f6d254d6380492ae6739df2c3524
master
Richard Fuchs 4 weeks ago
parent 819e45ec9c
commit 4fa78eec3d

@ -91,6 +91,14 @@ class AorEntry : public unordered_map<string, RegBinding>
}
friend class AorHash;
public:
long int get_lowest_expire() const {
auto it = bindings_by_time.cbegin();
if (it == bindings_by_time.cend())
return LONG_MAX; // empty sets go last
return (*it)->second.reg_expire;
}
};
struct AliasEntry

Loading…
Cancel
Save